pub struct LabeledCounter { /* private fields */ }Expand description
Labeled counter (counter with labels)
Implementations§
Source§impl LabeledCounter
impl LabeledCounter
Sourcepub fn with_label(&self, label: &str) -> Arc<Counter>
pub fn with_label(&self, label: &str) -> Arc<Counter>
Get or create a counter for the given label
Trait Implementations§
Source§impl Debug for LabeledCounter
impl Debug for LabeledCounter
Source§impl Default for LabeledCounter
impl Default for LabeledCounter
Source§fn default() -> LabeledCounter
fn default() -> LabeledCounter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for LabeledCounter
impl RefUnwindSafe for LabeledCounter
impl Send for LabeledCounter
impl Sync for LabeledCounter
impl Unpin for LabeledCounter
impl UnsafeUnpin for LabeledCounter
impl UnwindSafe for LabeledCounter
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