pub struct ActiveMeasurementGuard<'metric, Metric>where
Metric: MeasureLatency,{ /* private fields */ }Expand description
A guard for an active latency measurement.
Finishes the measurement when dropped, and then updates the Metric.
Implementations§
source§impl<Metric> ActiveMeasurementGuard<'_, Metric>where
Metric: MeasureLatency,
impl<Metric> ActiveMeasurementGuard<'_, Metric>where
Metric: MeasureLatency,
Trait Implementations§
source§impl<Metric> Drop for ActiveMeasurementGuard<'_, Metric>where
Metric: MeasureLatency,
impl<Metric> Drop for ActiveMeasurementGuard<'_, Metric>where
Metric: MeasureLatency,
Auto Trait Implementations§
impl<'metric, Metric> RefUnwindSafe for ActiveMeasurementGuard<'metric, Metric>where
Metric: RefUnwindSafe,
impl<'metric, Metric> Send for ActiveMeasurementGuard<'metric, Metric>where
Metric: Sync,
impl<'metric, Metric> Sync for ActiveMeasurementGuard<'metric, Metric>where
Metric: Sync,
impl<'metric, Metric> Unpin for ActiveMeasurementGuard<'metric, Metric>
impl<'metric, Metric> UnwindSafe for ActiveMeasurementGuard<'metric, Metric>where
Metric: RefUnwindSafe,
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