pub struct CounterStats {
pub count: u64,
pub total_time: Duration,
pub min_time: Duration,
pub max_time: Duration,
pub avg_time: Duration,
pub p95_time: Duration,
pub p99_time: Duration,
pub throughput: f64,
pub total_bytes: u64,
pub data_throughput: f64,
}Expand description
Performance statistics for a counter
Fields§
§count: u64Total number of measurements
total_time: DurationTotal time spent
min_time: DurationMinimum time
max_time: DurationMaximum time
avg_time: DurationAverage time
p95_time: Duration95th percentile time
p99_time: Duration99th percentile time
throughput: f64Total throughput (operations per second)
total_bytes: u64Total data processed (bytes)
data_throughput: f64Data throughput (bytes per second)
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