pub struct PathQuality {
pub rtt_ms: f64,
pub bandwidth_bps: u64,
pub loss_rate: f64,
pub jitter_ms: f64,
pub score: f64,
pub sample_count: usize,
pub last_updated: Instant,
}Expand description
Quality metrics for a network path
Fields§
§rtt_ms: f64Round-trip time (RTT) in milliseconds
bandwidth_bps: u64Bandwidth estimate in bytes/second
loss_rate: f64Packet loss rate (0.0 - 1.0)
jitter_ms: f64Jitter in milliseconds
score: f64Overall quality score (0.0 - 1.0, higher is better)
sample_count: usizeNumber of samples used for metrics
last_updated: InstantLast time quality was updated
Implementations§
Trait Implementations§
Source§impl Clone for PathQuality
impl Clone for PathQuality
Source§fn clone(&self) -> PathQuality
fn clone(&self) -> PathQuality
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 PathQuality
impl Debug for PathQuality
Auto Trait Implementations§
impl Freeze for PathQuality
impl RefUnwindSafe for PathQuality
impl Send for PathQuality
impl Sync for PathQuality
impl Unpin for PathQuality
impl UnwindSafe for PathQuality
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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