pub struct LatencySnapshot {
pub samples: u64,
pub min_ns: u64,
pub max_ns: u64,
pub sum_ns: u128,
}Expand description
单个 slave 的延迟统计快照
Fields§
§samples: u64已采样的请求总数
min_ns: u64最小延迟(纳秒)
max_ns: u64最大延迟(纳秒)
sum_ns: u128累计延迟(纳秒),用于计算平均值
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