pub struct ReadAtOffset<'a, T> { /* private fields */ }Expand description
Reader with fixed offset added to all attempted reads
Trait Implementations§
Source§impl<'a, T: Clone> Clone for ReadAtOffset<'a, T>
impl<'a, T: Clone> Clone for ReadAtOffset<'a, T>
Source§fn clone(&self) -> ReadAtOffset<'a, T>
fn clone(&self) -> ReadAtOffset<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, T: Debug> Debug for ReadAtOffset<'a, T>
impl<'a, T: Debug> Debug for ReadAtOffset<'a, T>
Source§impl<T> ReadAtAsync for &ReadAtOffset<'_, T>where
T: ReadAtAsync,
impl<T> ReadAtAsync for &ReadAtOffset<'_, T>where
T: ReadAtAsync,
Source§async fn read_at<B>(&self, buf: B, offset: u64) -> Result<B>
async fn read_at<B>(&self, buf: B, offset: u64) -> Result<B>
Fill the buffer by reading bytes at a specific offset and return the buffer back
Source§fn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>where
Self: Sized,
fn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>where
Self: Sized,
Get implementation of
ReadAtAsync that add specified offset to all attempted readsSource§impl<T> ReadAtAsync for ReadAtOffset<'_, T>where
T: ReadAtAsync,
impl<T> ReadAtAsync for ReadAtOffset<'_, T>where
T: ReadAtAsync,
Source§async fn read_at<B>(&self, buf: B, offset: u64) -> Result<B>
async fn read_at<B>(&self, buf: B, offset: u64) -> Result<B>
Fill the buffer by reading bytes at a specific offset and return the buffer back
Source§fn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>where
Self: Sized,
fn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>where
Self: Sized,
Get implementation of
ReadAtAsync that add specified offset to all attempted readsSource§impl<T> ReadAtSync for &ReadAtOffset<'_, T>where
T: ReadAtSync,
impl<T> ReadAtSync for &ReadAtOffset<'_, T>where
T: ReadAtSync,
Source§impl<T> ReadAtSync for ReadAtOffset<'_, T>where
T: ReadAtSync,
impl<T> ReadAtSync for ReadAtOffset<'_, T>where
T: ReadAtSync,
impl<'a, T: Copy> Copy for ReadAtOffset<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ReadAtOffset<'a, T>
impl<'a, T> RefUnwindSafe for ReadAtOffset<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ReadAtOffset<'a, T>where
T: Sync,
impl<'a, T> Sync for ReadAtOffset<'a, T>where
T: Sync,
impl<'a, T> Unpin for ReadAtOffset<'a, T>
impl<'a, T> UnwindSafe for ReadAtOffset<'a, T>where
T: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more