Struct prometheus_utils::DeferredAdd [−][src]
pub struct DeferredAdd<'a, P: Atomic> { /* fields omitted */ }
Expand description
A guard that will automatically increment a GenericCounter when dropped.
Created by the methods on the DeferredCounter extension trait.
Implementations
Eagerly perform the increment, consuming the guard.
Trait Implementations
When dropped, a DeferredAdd guard will increment its counter.
Auto Trait Implementations
impl<'a, P> RefUnwindSafe for DeferredAdd<'a, P> where
P: RefUnwindSafe,
<P as Atomic>::T: RefUnwindSafe, impl<'a, P> Send for DeferredAdd<'a, P>impl<'a, P> Sync for DeferredAdd<'a, P>impl<'a, P> Unpin for DeferredAdd<'a, P> where
<P as Atomic>::T: Unpin, impl<'a, P> UnwindSafe for DeferredAdd<'a, P> where
P: RefUnwindSafe,
<P as Atomic>::T: UnwindSafe,