pub struct NetworkMetrics {
pub rtt: Duration,
pub packet_loss_ratio: Option<f32>,
}Expand description
Network feedback used to cap the currently requested quality tier.
Fields§
§rtt: DurationCurrent smoothed round-trip time for the transport session.
packet_loss_ratio: Option<f32>Estimated packet loss ratio in the range [0.0, 1.0], if available.
Implementations§
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
Source§impl PartialEq for NetworkMetrics
impl PartialEq for NetworkMetrics
impl Copy for NetworkMetrics
impl StructuralPartialEq 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 UnsafeUnpin 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