pub struct StatsSnapshot {Show 14 fields
pub target: String,
pub sample_count: usize,
pub loss_count: usize,
pub loss_pct: f64,
pub rtt_min_us: Option<u64>,
pub rtt_max_us: Option<u64>,
pub rtt_mean_us: Option<f64>,
pub rtt_p50_us: Option<u64>,
pub rtt_p90_us: Option<u64>,
pub rtt_p95_us: Option<u64>,
pub rtt_p99_us: Option<u64>,
pub jitter_us: Option<f64>,
pub max_burst_loss: usize,
pub reorder_count: usize,
}Expand description
A complete statistical snapshot for one target at one point in time.
Fields§
§target: String§sample_count: usize§loss_count: usize§loss_pct: f64§rtt_min_us: Option<u64>§rtt_max_us: Option<u64>§rtt_mean_us: Option<f64>§rtt_p50_us: Option<u64>§rtt_p90_us: Option<u64>§rtt_p95_us: Option<u64>§rtt_p99_us: Option<u64>§jitter_us: Option<f64>Jitter in microseconds (RFC 3393 — mean of |RTT[n] - RTT[n-1]|)
max_burst_loss: usizeMaximum consecutive-loss streak in the sample window
reorder_count: usizeNumber of out-of-order arrivals detected
Trait Implementations§
Source§impl Clone for StatsSnapshot
impl Clone for StatsSnapshot
Source§fn clone(&self) -> StatsSnapshot
fn clone(&self) -> StatsSnapshot
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 moreSource§impl Debug for StatsSnapshot
impl Debug for StatsSnapshot
Auto Trait Implementations§
impl Freeze for StatsSnapshot
impl RefUnwindSafe for StatsSnapshot
impl Send for StatsSnapshot
impl Sync for StatsSnapshot
impl Unpin for StatsSnapshot
impl UnsafeUnpin for StatsSnapshot
impl UnwindSafe for StatsSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more