pub struct NextBlockSizeAdapter<T> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<T: BlockIO<A, BlockSize: HasNextBlockSize>, A: Access> BlockIO<A> for NextBlockSizeAdapter<T>
impl<T: BlockIO<A, BlockSize: HasNextBlockSize>, A: Access> BlockIO<A> for NextBlockSizeAdapter<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: HasNextBlockSize>> BlockIOLayout for NextBlockSizeAdapter<T>
impl<T: BlockIOLayout<BlockSize: HasNextBlockSize>> BlockIOLayout for NextBlockSizeAdapter<T>
type Error = <T as BlockIOLayout>::Error
type BlockSize = <<T as BlockIOLayout>::BlockSize as HasNextBlockSize>::NextBlockSize
fn block_size(&self) -> Self::BlockSize
fn num_blocks(&self) -> u64
Source§impl<T: Clone> Clone for NextBlockSizeAdapter<T>
impl<T: Clone> Clone for NextBlockSizeAdapter<T>
Source§fn clone(&self) -> NextBlockSizeAdapter<T>
fn clone(&self) -> NextBlockSizeAdapter<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 NextBlockSizeAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for NextBlockSizeAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for NextBlockSizeAdapter<T>where
T: Send,
impl<T> Sync for NextBlockSizeAdapter<T>where
T: Sync,
impl<T> Unpin for NextBlockSizeAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for NextBlockSizeAdapter<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
)