pub struct NetworkMetrics {
pub loss_ratio: f64,
pub late_frame_rate: f64,
pub jitter_ms: Option<f64>,
}Expand description
Snapshot of the observed network metrics for a single session.
Fields§
§loss_ratio: f64Fraction of expected frames that never arrived, in [0, 1].
late_frame_rate: f64Fraction of observed frames that missed their delivery deadline.
jitter_ms: Option<f64>Average jitter in milliseconds between consecutive arrivals.
Trait Implementations§
Source§impl Clone for NetworkMetrics
impl Clone for NetworkMetrics
Source§fn clone(&self) -> NetworkMetrics
fn clone(&self) -> NetworkMetrics
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 NetworkMetrics
impl Debug for NetworkMetrics
impl Copy for NetworkMetrics
Auto Trait Implementations§
impl Freeze for NetworkMetrics
impl RefUnwindSafe for NetworkMetrics
impl Send for NetworkMetrics
impl Sync for NetworkMetrics
impl Unpin for NetworkMetrics
impl UnwindSafe for NetworkMetrics
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