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 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 moreAuto Trait Implementations§
impl<W> Freeze for TrackingSliceWriter<W>where
W: Freeze,
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