[][src]Struct sunrise_ahci::AhciInterface

struct 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]

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]

Gets the interface to a disk.

This creates a session to an IDisk.

Error

  • InvalidArg: disk_id is not a valid disk id.

impl Clone for AhciInterface[src]

impl Debug for AhciInterface[src]

impl Default for 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.