Struct prometheus_utils::GenericGaugeGuard
source · [−]pub struct GenericGaugeGuard<P: Atomic + 'static> { /* private fields */ }
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,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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