pub struct ReadAtShim<S>(pub S);Tuple Fields§
§0: STrait Implementations§
Source§impl<S: ReadAt> DynReadAt for ReadAtShim<S>
impl<S: ReadAt> DynReadAt for ReadAtShim<S>
Source§fn len(&mut self) -> Result<u64, BoxedError>
fn len(&mut self) -> Result<u64, BoxedError>
Total length in bytes (may be expensive; see
ReadAt::len).Source§fn read_exact_at(
&mut self,
offset: u64,
out: &mut [u8],
) -> Result<(), BoxedError>
fn read_exact_at( &mut self, offset: u64, out: &mut [u8], ) -> Result<(), BoxedError>
Fill
out with the bytes at offset.Source§fn read_many_at(
&mut self,
reqs: &mut [(u64, &mut [u8])],
) -> Result<(), BoxedError>
fn read_many_at( &mut self, reqs: &mut [(u64, &mut [u8])], ) -> Result<(), BoxedError>
Fill each buffer from its offset, concurrently where possible.
Auto Trait Implementations§
impl<S> Freeze for ReadAtShim<S>where
S: Freeze,
impl<S> RefUnwindSafe for ReadAtShim<S>where
S: RefUnwindSafe,
impl<S> Send for ReadAtShim<S>where
S: Send,
impl<S> Sync for ReadAtShim<S>where
S: Sync,
impl<S> Unpin for ReadAtShim<S>where
S: Unpin,
impl<S> UnsafeUnpin for ReadAtShim<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ReadAtShim<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more