pub struct CounterStats {
pub value: u64,
pub age: Duration,
pub rate_per_second: f64,
pub total: u64,
}Expand description
Counter statistics
Fields§
§value: u64Current counter value
age: DurationTime since counter creation
rate_per_second: f64Average increments per second since creation
total: u64Total increments (same as value for basic counter)
Trait Implementations§
Source§impl Clone for CounterStats
impl Clone for CounterStats
Source§fn clone(&self) -> CounterStats
fn clone(&self) -> CounterStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CounterStats
impl RefUnwindSafe for CounterStats
impl Send for CounterStats
impl Sync for CounterStats
impl Unpin for CounterStats
impl UnwindSafe for CounterStats
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