Struct str0m::stats::MediaEgressStats
source · pub struct MediaEgressStats {
pub mid: Mid,
pub rid: Option<Rid>,
pub bytes: u64,
pub packets: u64,
pub firs: u64,
pub plis: u64,
pub nacks: u64,
pub rtt: Option<f32>,
pub loss: Option<f32>,
pub timestamp: Instant,
}
Expand description
An event carrying stats for every (mid, rid) in egress direction
note: when simulcast is disabled, rid
is None
Fields§
§mid: Mid
The identifier of the m-line these stats are for.
rid: Option<Rid>
The Rid identifier in case of simulcast.
bytes: u64
Total bytes sent, including retransmissions.
Spec equivalent to RTCSentRtpStreamStats.bytesSent
.
packets: u64
Total number of rtp packets sent, including retransmissions
Spec equivalent of RTCSentRtpStreamStats.packetsSent
.
firs: u64
Number of firs received.
plis: u64
Number of plis received.
nacks: u64
Number of nacks received.
rtt: Option<f32>
Round-trip-time (ms) extracted from the last RTCP receiver report.
loss: Option<f32>
Fraction of packets lost averaged from the RTCP receiver reports received.
None
if no reports have been received since the last event
timestamp: Instant
Timestamp when this event was generated
Trait Implementations§
source§impl Clone for MediaEgressStats
impl Clone for MediaEgressStats
source§fn clone(&self) -> MediaEgressStats
fn clone(&self) -> MediaEgressStats
Returns a copy 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 more