pub struct LatencyMetrics {
pub rtt: Duration,
pub min_rtt: Duration,
pub max_rtt: Duration,
pub smoothed_rtt: Duration,
}
Expand description
Latency metrics
Fields§
§rtt: Duration
Latest round-trip time sample
min_rtt: Duration
Minimum observed RTT
max_rtt: Duration
Maximum observed RTT
smoothed_rtt: Duration
Smoothed RTT estimate
Trait Implementations§
Source§impl Clone for LatencyMetrics
impl Clone for LatencyMetrics
Source§fn clone(&self) -> LatencyMetrics
fn clone(&self) -> LatencyMetrics
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 moreAuto Trait Implementations§
impl Freeze for LatencyMetrics
impl RefUnwindSafe for LatencyMetrics
impl Send for LatencyMetrics
impl Sync for LatencyMetrics
impl Unpin for LatencyMetrics
impl UnwindSafe for LatencyMetrics
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