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
sourceimpl<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.
sourceimpl<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
Trait Implementations
sourceimpl<T: Debug + 'static + MayFlush, V: Debug + CounterWithValueType, D: Debug + CounterDelegator<T, V>> Debug for AFLocalCounter<T, V, D>
impl<T: Debug + 'static + MayFlush, V: Debug + CounterWithValueType, D: Debug + CounterDelegator<T, V>> Debug for AFLocalCounter<T, V, D>
Auto Trait Implementations
impl<T, V, D> !RefUnwindSafe for AFLocalCounter<T, V, D>
impl<T, V, D> Send for AFLocalCounter<T, V, D> where
D: Send,
T: Send,
V: Send,
impl<T, V, D> Sync for AFLocalCounter<T, V, D> where
D: Sync,
T: Send,
V: Send,
impl<T, V, D> Unpin for AFLocalCounter<T, V, D> where
D: Unpin,
T: Unpin,
V: Unpin,
impl<T, V, D> UnwindSafe for AFLocalCounter<T, V, D> where
D: UnwindSafe,
T: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more