struct MetricGuard<'a, F>{
metrics: &'a RuntimeMetrics,
started_at: Instant,
finish: F,
}Fields§
§metrics: &'a RuntimeMetrics§started_at: Instant§finish: FTrait Implementations§
Auto Trait Implementations§
impl<'a, F> Freeze for MetricGuard<'a, F>where
F: Freeze,
impl<'a, F> RefUnwindSafe for MetricGuard<'a, F>where
F: RefUnwindSafe,
impl<'a, F> Send for MetricGuard<'a, F>where
F: Send,
impl<'a, F> Sync for MetricGuard<'a, F>where
F: Sync,
impl<'a, F> Unpin for MetricGuard<'a, F>where
F: Unpin,
impl<'a, F> UnsafeUnpin for MetricGuard<'a, F>where
F: UnsafeUnpin,
impl<'a, F> UnwindSafe for MetricGuard<'a, F>where
F: 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