Struct iroh_blobs::util::io::TrackingReader
source · pub struct TrackingReader<R> { /* private fields */ }
Expand description
A reader that tracks the number of bytes read
Implementations§
source§impl<R> TrackingReader<R>
impl<R> TrackingReader<R>
sourcepub fn bytes_read(&self) -> u64
pub fn bytes_read(&self) -> u64
Get the number of bytes read
sourcepub fn into_parts(self) -> (R, u64)
pub fn into_parts(self) -> (R, u64)
Get the inner reader
Trait Implementations§
source§impl<R> AsyncStreamReader for TrackingReader<R>where
R: AsyncStreamReader,
impl<R> AsyncStreamReader for TrackingReader<R>where
R: AsyncStreamReader,
Auto Trait Implementations§
impl<R> Freeze for TrackingReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for TrackingReader<R>where
R: RefUnwindSafe,
impl<R> Send for TrackingReader<R>where
R: Send,
impl<R> Sync for TrackingReader<R>where
R: Sync,
impl<R> Unpin for TrackingReader<R>where
R: Unpin,
impl<R> UnwindSafe for TrackingReader<R>where
R: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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