pub struct ExitGuard<'a, R, M: Metric<R>> { /* private fields */ }
Expand description
Handles a metric’s lifecycle, guarding against early returns and panics.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a, R, M> RefUnwindSafe for ExitGuard<'a, R, M> where
M: RefUnwindSafe,
R: RefUnwindSafe,
<M as Enter>::E: RefUnwindSafe,
impl<'a, R, M> Send for ExitGuard<'a, R, M> where
M: Sync,
R: Send,
<M as Enter>::E: Send,
impl<'a, R, M> Sync for ExitGuard<'a, R, M> where
M: Sync,
R: Sync,
<M as Enter>::E: Sync,
impl<'a, R, M> Unpin for ExitGuard<'a, R, M> where
R: Unpin,
<M as Enter>::E: Unpin,
impl<'a, R, M> UnwindSafe for ExitGuard<'a, R, M> where
M: RefUnwindSafe,
R: UnwindSafe,
<M as Enter>::E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more