Trait prometheus_utils::DeferredCounter[][src]

pub trait DeferredCounter<P: Atomic + 'static> {
    fn deferred_add(&'static self, v: P::T) -> DeferredAdd<'_, P>;

    fn deferred_inc(&'static self) -> DeferredAdd<'_, P> { ... }
}
Expand description

An extension trait for GenericCounter to provide methods for incrementing a counter once an RAII-style guard has been dropped.

Required methods

Increase the counter by v when the guard is dropped.

Provided methods

Increase the counter by 1 when the guard is dropped.

Implementations on Foreign Types

Implementors