Struct prometheus::local::AFLocalCounter
source · pub struct AFLocalCounter<T: 'static + MayFlush, V: CounterWithValueType, D: CounterDelegator<T, V>> { /* private fields */ }
Expand description
Auto flush-able local counter
Implementations§
source§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>
sourcepub fn new(delegator: D) -> AFLocalCounter<T, V, D>
pub fn new(delegator: D) -> AFLocalCounter<T, V, D>
Construct a new AFLocalCounter from delegator.
source§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