[][src]Struct sunrise_fs::detail::driver::AhciDiskStorage

pub struct AhciDiskStorage {
    inner: IDiskProxy,
}

A wrapper to a ahci IDisk.

Fields

inner: IDiskProxy

The inner IDisk.

Implementations

impl AhciDiskStorage[src]

pub fn new(device: IDiskProxy) -> Self[src]

Create a new AhciDiskStorage.

Trait Implementations

impl BlockDevice for AhciDiskStorage[src]

type Block = Block

Represents a Block that this BlockDevice can read or write to. A Block is generally a byte array of a certain fixed size. It might also have alignment constraints. Read more

type Error = Error

Error type returned by this block device when an operation fails

fn read(
    &mut self,
    blocks: &mut [Self::Block],
    index: BlockIndex
) -> Result<(), Error>
[src]

Read blocks from the block device starting at the given index.

fn write(
    &mut self,
    blocks: &[Self::Block],
    index: BlockIndex
) -> Result<(), Error>
[src]

Write blocks to the block device starting at the given index.

fn count(&mut self) -> Result<BlockCount, Error>[src]

Return the amount of blocks hold by the block device.

impl Debug for AhciDiskStorage[src]

Auto Trait Implementations

impl RefUnwindSafe for AhciDiskStorage

impl Send for AhciDiskStorage

impl Sync for AhciDiskStorage

impl Unpin for AhciDiskStorage

impl UnwindSafe for AhciDiskStorage

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, 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.