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.