pub struct PeerStats {
pub estimated_bitrate_bps: Option<u64>,
pub rtt_ms: Option<f32>,
pub egress_loss: Option<f32>,
}Available on crate features
ingest and webrtc only.Expand description
A snapshot of one peer connection’s quality, surfaced from the transport for host metrics (Prometheus, dashboards) and Phase-1/2 debugging.
All fields are Option because a fresh connection may not have produced an
estimate or a feedback report yet.
Fields§
§estimated_bitrate_bps: Option<u64>Egress bandwidth estimate in bits/sec (TWCC/REMB), as in
estimated_bitrate.
rtt_ms: Option<f32>Round-trip time in milliseconds, from the latest RTCP receiver report.
egress_loss: Option<f32>Egress packet loss fraction over the last second (0.0–1.0).
Trait Implementations§
impl StructuralPartialEq for PeerStats
Auto Trait Implementations§
impl Freeze for PeerStats
impl RefUnwindSafe for PeerStats
impl Send for PeerStats
impl Sync for PeerStats
impl Unpin for PeerStats
impl UnsafeUnpin for PeerStats
impl UnwindSafe for PeerStats
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