[−][src]Struct sunrise_ahci::AhciInterface
Main interface to the AHCI driver.
Registered under the name "ahci:\0"
to the Service Manager, after the discovery stage.
Provides an endpoint to get the number of discovered disks, and another one to get a session to a given disk.
As hotplug/remove of a disk is not supported, a disk id remains valid for the whole lifetime of the ahci driver.
Trait Implementations
impl AhciInterface for AhciInterface
[src]
fn discovered_disks_count(
&mut self,
_manager: WorkQueue<'static>
) -> Result<u32, Error>
[src]
&mut self,
_manager: WorkQueue<'static>
) -> Result<u32, Error>
Returns the number of discovered disks.
Any number in the range 0..disk_count()
is considered a valid disk id.
fn get_disk(
&mut self,
work_queue: WorkQueue<'static>,
disk_id: u32
) -> Result<IDiskProxy, Error>
[src]
&mut self,
work_queue: WorkQueue<'static>,
disk_id: u32
) -> Result<IDiskProxy, Error>
Gets the interface to a disk.
This creates a session to an IDisk.
Error
- InvalidArg:
disk_id
is not a valid disk id.
fn dispatch(
&'a mut self,
manager: WorkQueue<'static>,
cmdid: u32,
buf: &'a mut [u8]
) -> FutureObj<'a, Result<(), Error>>
[src]
&'a mut self,
manager: WorkQueue<'static>,
cmdid: u32,
buf: &'a mut [u8]
) -> FutureObj<'a, Result<(), Error>>
impl Clone for AhciInterface
[src]
fn clone(&self) -> AhciInterface
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AhciInterface
[src]
impl Default for AhciInterface
[src]
fn default() -> AhciInterface
[src]
Auto Trait Implementations
impl RefUnwindSafe for AhciInterface
impl Send for AhciInterface
impl Sync for AhciInterface
impl Unpin for AhciInterface
impl UnwindSafe for AhciInterface
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&self) -> usize
[src]
fn is_cool(addr: usize, size: usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(addr: usize, _size: usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(addr: usize, _size: usize) -> &'a mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,