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