Struct iroh_io::stats::TrackingStreamReader
source · pub struct TrackingStreamReader<W> { /* private fields */ }Expand description
A stream writer that tracks the time spent in write operations.
Implementations§
source§impl<W> TrackingStreamReader<W>
impl<W> TrackingStreamReader<W>
sourcepub fn stats(&self) -> StreamReaderStats
pub fn stats(&self) -> StreamReaderStats
Get the statistics about the write operations.
Trait Implementations§
source§impl<W: AsyncStreamReader> AsyncStreamReader for TrackingStreamReader<W>
impl<W: AsyncStreamReader> AsyncStreamReader for TrackingStreamReader<W>
source§impl<W: Clone> Clone for TrackingStreamReader<W>
impl<W: Clone> Clone for TrackingStreamReader<W>
source§fn clone(&self) -> TrackingStreamReader<W>
fn clone(&self) -> TrackingStreamReader<W>
Returns a copy 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 moreAuto Trait Implementations§
impl<W> RefUnwindSafe for TrackingStreamReader<W>where
W: RefUnwindSafe,
impl<W> Send for TrackingStreamReader<W>where
W: Send,
impl<W> Sync for TrackingStreamReader<W>where
W: Sync,
impl<W> Unpin for TrackingStreamReader<W>where
W: Unpin,
impl<W> UnwindSafe for TrackingStreamReader<W>where
W: 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