Struct prometheus::local::AFLocalCounter [−][src]
pub struct AFLocalCounter<T: 'static + MayFlush, V: CounterWithValueType, D: CounterDelegator<T, V>> { /* fields omitted */ }
Expand description
Auto flush-able local counter
Implementations
impl<T: 'static + MayFlush, V: CounterWithValueType, D: CounterDelegator<T, V>> AFLocalCounter<T, V, D>
impl<T: 'static + MayFlush, V: CounterWithValueType, D: CounterDelegator<T, V>> AFLocalCounter<T, V, D>
Construct a new AFLocalCounter from delegator.
impl<T: 'static + MayFlush, V: CounterWithValueType, D: CounterDelegator<T, V>> AFLocalCounter<T, V, D>
impl<T: 'static + MayFlush, V: CounterWithValueType, D: CounterDelegator<T, V>> AFLocalCounter<T, V, D>
Auto flush-able local counter
Increase the given value to the local counter, and try to flush to global
Panics
Panics in debug build if the value is < 0.