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