pub struct ByteIOAdapter<T> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<T: BlockIO<A>, A: ReadAccess> ByteIO<A> for ByteIOAdapter<T>
impl<T: BlockIO<A>, A: ReadAccess> ByteIO<A> for ByteIOAdapter<T>
async fn read_or_write( &self, offset: u64, operation: Operation<'_, A>, ) -> Result<(), Self::Error>
async fn read(&self, offset: u64, buf: &mut [u8]) -> Result<(), Self::Error>where
A: ReadAccess,
async fn write(&self, offset: u64, buf: &[u8]) -> Result<(), Self::Error>where
A: WriteAccess,
Source§impl<T: BlockIOLayout> ByteIOLayout for ByteIOAdapter<T>
impl<T: BlockIOLayout> ByteIOLayout for ByteIOAdapter<T>
Source§impl<T: Clone> Clone for ByteIOAdapter<T>
impl<T: Clone> Clone for ByteIOAdapter<T>
Source§fn clone(&self) -> ByteIOAdapter<T>
fn clone(&self) -> ByteIOAdapter<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 ByteIOAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for ByteIOAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for ByteIOAdapter<T>where
T: Send,
impl<T> Sync for ByteIOAdapter<T>where
T: Sync,
impl<T> Unpin for ByteIOAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for ByteIOAdapter<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
)