[−][src]Struct sunrise_fs::detail::driver::AhciDiskStorage
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]
&mut self,
blocks: &mut [Self::Block],
index: BlockIndex
) -> Result<(), Error>
Read blocks from the block device starting at the given index
.
fn write(
&mut self,
blocks: &[Self::Block],
index: BlockIndex
) -> Result<(), Error>
[src]
&mut self,
blocks: &[Self::Block],
index: BlockIndex
) -> Result<(), Error>
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.
fn flush(&mut self) -> Result<(), Self::Error>
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]
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, 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>,