pub struct PrevBlockSizeAdapter<T> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<T: BlockIO<A, BlockSize: HasPrevBlockSize>, A: ReadAccess> BlockIO<A> for PrevBlockSizeAdapter<T>
impl<T: BlockIO<A, BlockSize: HasPrevBlockSize>, A: ReadAccess> BlockIO<A> for PrevBlockSizeAdapter<T>
async fn read_or_write_blocks( &self, start_block_idx: u64, operation: Operation<'_, A>, ) -> Result<(), Self::Error>
async fn read_blocks(
&self,
start_block_idx: u64,
buf: &mut [u8],
) -> Result<(), Self::Error>where
A: ReadAccess,
async fn write_blocks(
&self,
start_block_idx: u64,
buf: &[u8],
) -> Result<(), Self::Error>where
A: WriteAccess,
Source§impl<T: BlockIOLayout<BlockSize: HasPrevBlockSize>> BlockIOLayout for PrevBlockSizeAdapter<T>
impl<T: BlockIOLayout<BlockSize: HasPrevBlockSize>> BlockIOLayout for PrevBlockSizeAdapter<T>
type Error = <T as BlockIOLayout>::Error
type BlockSize = <<T as BlockIOLayout>::BlockSize as HasPrevBlockSize>::PrevBlockSize
fn block_size(&self) -> Self::BlockSize
fn num_blocks(&self) -> u64
Source§impl<T: Clone> Clone for PrevBlockSizeAdapter<T>
impl<T: Clone> Clone for PrevBlockSizeAdapter<T>
Source§fn clone(&self) -> PrevBlockSizeAdapter<T>
fn clone(&self) -> PrevBlockSizeAdapter<T>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for PrevBlockSizeAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for PrevBlockSizeAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for PrevBlockSizeAdapter<T>where
T: Send,
impl<T> Sync for PrevBlockSizeAdapter<T>where
T: Sync,
impl<T> Unpin for PrevBlockSizeAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for PrevBlockSizeAdapter<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)