Struct prometheus_utils::GenericGaugeGuard [−][src]
pub struct GenericGaugeGuard<P: Atomic + 'static> { /* fields omitted */ }
Expand description
An RAII-style guard for situations where we want to increment a gauge and then ensure that there is always a corresponding decrement.
Created by the methods on the GuardedGauge
extension trait.
Trait Implementations
Auto Trait Implementations
impl<P> RefUnwindSafe for GenericGaugeGuard<P> where
P: RefUnwindSafe,
<P as Atomic>::T: RefUnwindSafe,
impl<P> Send for GenericGaugeGuard<P>
impl<P> Sync for GenericGaugeGuard<P>
impl<P> Unpin for GenericGaugeGuard<P> where
<P as Atomic>::T: Unpin,
impl<P> UnwindSafe for GenericGaugeGuard<P> where
P: RefUnwindSafe,
<P as Atomic>::T: UnwindSafe,