pub struct LatencyStatistics {
pub count: u64,
pub total_ms: u64,
pub mean_ms: Option<f64>,
pub p50_ms: Option<u64>,
pub p95_ms: Option<u64>,
pub max_ms: Option<u64>,
}Expand description
Statistics over recorded latency samples, in milliseconds.
Fields§
§count: u64Number of latency samples.
total_ms: u64Sum of latency samples.
mean_ms: Option<f64>Arithmetic mean, or None when no samples were recorded.
p50_ms: Option<u64>Median from the bounded latency reservoir, or None when no samples were recorded.
p95_ms: Option<u64>95th percentile from the bounded latency reservoir, or None when no samples were recorded.
max_ms: Option<u64>Largest recorded sample, or None when no samples were recorded.
Trait Implementations§
Source§impl Clone for LatencyStatistics
impl Clone for LatencyStatistics
impl Copy for LatencyStatistics
Source§impl Debug for LatencyStatistics
impl Debug for LatencyStatistics
Source§impl Default for LatencyStatistics
impl Default for LatencyStatistics
Source§impl<'de> Deserialize<'de> for LatencyStatistics
impl<'de> Deserialize<'de> for LatencyStatistics
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
Source§impl PartialEq for LatencyStatistics
impl PartialEq for LatencyStatistics
Source§impl Serialize for LatencyStatistics
impl Serialize for LatencyStatistics
impl StructuralPartialEq for LatencyStatistics
Auto Trait Implementations§
impl Freeze for LatencyStatistics
impl RefUnwindSafe for LatencyStatistics
impl Send for LatencyStatistics
impl Sync for LatencyStatistics
impl Unpin for LatencyStatistics
impl UnsafeUnpin for LatencyStatistics
impl UnwindSafe for LatencyStatistics
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