Struct prometheus_utils::DeferredAddWithLabels [−][src]
pub struct DeferredAddWithLabels<'a, L: Labels> { /* fields omitted */ }
Expand description
A guard that will automatically increment a labeled metric when dropped.
Created by calling IntCounterWithLabels::deferred_inc
.
Implementations
Update the labels to use when incrementing the metric.
Eagerly perform the increment, consuming the guard.
Trait Implementations
When dropped, a DeferredAddWithLabels
guard will increment its counter.
Auto Trait Implementations
impl<'a, L> !RefUnwindSafe for DeferredAddWithLabels<'a, L>
impl<'a, L> Send for DeferredAddWithLabels<'a, L> where
L: Send + Sync,
impl<'a, L> Sync for DeferredAddWithLabels<'a, L> where
L: Sync,
impl<'a, L> Unpin for DeferredAddWithLabels<'a, L> where
L: Unpin,
impl<'a, L> !UnwindSafe for DeferredAddWithLabels<'a, L>