Struct sel4_async_block_io_fat::BlockIOWrapper

source ·
pub struct BlockIOWrapper<T, A> { /* private fields */ }

Implementations§

source§

impl<T, A> BlockIOWrapper<T, A>

source

pub fn new(inner: T) -> Self

Trait Implementations§

source§

impl<T: BlockIO<A, BlockSize = BlockSize512>, A: Access> BlockDevice for BlockIOWrapper<T, A>

source§

type Error = Infallible

The errors that the BlockDevice can return. Must be debug formattable.
source§

async fn read( &self, blocks: &mut [Block], start_block_idx: BlockIdx, _reason: &str, ) -> Result<(), Self::Error>

Read one or more blocks, starting at the given block index.
source§

async fn write( &self, blocks: &[Block], start_block_idx: BlockIdx, ) -> Result<(), Self::Error>

Write one or more blocks, starting at the given block index.
source§

async fn num_blocks(&self) -> Result<BlockCount, Self::Error>

Determine how many blocks this device can hold.

Auto Trait Implementations§

§

impl<T, A> Freeze for BlockIOWrapper<T, A>
where T: Freeze,

§

impl<T, A> RefUnwindSafe for BlockIOWrapper<T, A>
where T: RefUnwindSafe, A: RefUnwindSafe,

§

impl<T, A> Send for BlockIOWrapper<T, A>
where T: Send, A: Send,

§

impl<T, A> Sync for BlockIOWrapper<T, A>
where T: Sync, A: Sync,

§

impl<T, A> Unpin for BlockIOWrapper<T, A>
where T: Unpin, A: Unpin,

§

impl<T, A> UnwindSafe for BlockIOWrapper<T, A>
where T: UnwindSafe, A: UnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where 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>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.