pub struct BlockIOWrapper<T, A> { /* private fields */ }
Implementations§
Source§impl<T, A> BlockIOWrapper<T, A>
impl<T, A> BlockIOWrapper<T, A>
Trait Implementations§
Source§impl<T: BlockIO<A, BlockSize = BlockSize512>, A: Access> BlockDevice for BlockIOWrapper<T, A>
impl<T: BlockIO<A, BlockSize = BlockSize512>, A: Access> BlockDevice for BlockIOWrapper<T, A>
Source§type Error = Infallible
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>
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>
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>
async fn num_blocks(&self) -> Result<BlockCount, Self::Error>
Determine how many blocks this device can hold.