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
Trait Implementations§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more