pub struct Counter { /* private fields */ }
Expand description
A metric used to measure incrementing values.
Counters can be created via the metrical::counter
function,
or the metrical::namespace::counter
method.
§Examples
- The number of login attempts you’ve handled
- The number of cache lookups you’ve successfully made
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnwindSafe for Counter
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