pub struct LatencySnapshot {
pub samples: u64,
pub min_ns: u64,
pub max_ns: u64,
pub sum_ns: u128,
}Expand description
Latency statistics snapshot for a single slave
Fields§
§samples: u64Total number of sampled requests
min_ns: u64Minimum latency (nanoseconds)
max_ns: u64Maximum latency (nanoseconds)
sum_ns: u128Cumulative latency (nanoseconds), used to compute the average
Implementations§
Trait Implementations§
Source§impl Clone for LatencySnapshot
impl Clone for LatencySnapshot
Source§fn clone(&self) -> LatencySnapshot
fn clone(&self) -> LatencySnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LatencySnapshot
impl Debug for LatencySnapshot
Source§impl Default for LatencySnapshot
impl Default for LatencySnapshot
Source§fn default() -> LatencySnapshot
fn default() -> LatencySnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LatencySnapshot
impl<'de> Deserialize<'de> for LatencySnapshot
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 LatencySnapshot
impl RefUnwindSafe for LatencySnapshot
impl Send for LatencySnapshot
impl Sync for LatencySnapshot
impl Unpin for LatencySnapshot
impl UnsafeUnpin for LatencySnapshot
impl UnwindSafe for LatencySnapshot
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