pub struct LatencyStats {
pub count: usize,
pub min: u64,
pub max: u64,
pub avg: f64,
pub median: f64,
pub p95: u64,
pub p99: u64,
pub error_rate: f64,
}Expand description
Latency statistics
Fields§
§count: usizeSample count
min: u64Minimum latency (ms)
max: u64Maximum latency (ms)
avg: f64Average latency (ms)
median: f64Median latency (ms)
p95: u64P95 latency (ms)
p99: u64P99 latency (ms)
error_rate: f64Error rate (0.0-1.0)
Trait Implementations§
Source§impl Clone for LatencyStats
impl Clone for LatencyStats
Source§fn clone(&self) -> LatencyStats
fn clone(&self) -> LatencyStats
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 LatencyStats
impl Debug for LatencyStats
Source§impl Default for LatencyStats
impl Default for LatencyStats
Source§fn default() -> LatencyStats
fn default() -> LatencyStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LatencyStats
impl<'de> Deserialize<'de> for LatencyStats
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 LatencyStats
impl RefUnwindSafe for LatencyStats
impl Send for LatencyStats
impl Sync for LatencyStats
impl Unpin for LatencyStats
impl UnwindSafe for LatencyStats
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