pub struct Stats {
pub count: u64,
pub duration: Duration,
}Expand description
Statistics about a tracked operation.
Fields§
§count: u64The number of times the operation was called.
duration: DurationThe total time spent in the operation.
Trait Implementations§
Source§impl AddAssign for Stats
impl AddAssign for Stats
Source§fn add_assign(&mut self, rhs: Stats)
fn add_assign(&mut self, rhs: Stats)
Performs the
+= operation. Read moreSource§impl From<Stats> for SizeAndStats
impl From<Stats> for SizeAndStats
impl Copy for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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