pub struct CounterStats {
pub name: String,
pub count: u64,
pub total_time_ms: f64,
pub average_ms: f64,
pub recent_average_ms: f64,
pub min_ms: f64,
pub max_ms: f64,
pub p50_ms: f64,
pub p95_ms: f64,
pub p99_ms: f64,
}Expand description
Counter statistics
Fields§
§name: StringCounter name
count: u64Total count
total_time_ms: f64Total time
average_ms: f64Average time
recent_average_ms: f64Recent average time
min_ms: f64Minimum time
max_ms: f64Maximum time
p50_ms: f6450th percentile
p95_ms: f6495th percentile
p99_ms: f6499th percentile
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 moreSource§impl Debug for CounterStats
impl Debug for CounterStats
Source§impl<'de> Deserialize<'de> for CounterStats
impl<'de> Deserialize<'de> for CounterStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CounterStats
impl RefUnwindSafe for CounterStats
impl Send for CounterStats
impl Sync for CounterStats
impl Unpin for CounterStats
impl UnsafeUnpin 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