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