pub struct LatencyTracker { /* private fields */ }
Expand description
Latency tracking
Implementations§
Source§impl LatencyTracker
impl LatencyTracker
Sourcepub fn record_rtt(&self, rtt: Duration)
pub fn record_rtt(&self, rtt: Duration)
Record a round-trip time measurement
Sourcepub fn summary(&self) -> LatencySummary
pub fn summary(&self) -> LatencySummary
Produce a summary snapshot of latency metrics
Trait Implementations§
Source§impl Debug for LatencyTracker
impl Debug for LatencyTracker
Auto Trait Implementations§
impl !Freeze for LatencyTracker
impl RefUnwindSafe for LatencyTracker
impl Send for LatencyTracker
impl Sync for LatencyTracker
impl Unpin for LatencyTracker
impl UnwindSafe for LatencyTracker
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