pub struct RtcReceivedRtpStreamStats {
pub stream: RtcRtpStreamStats,
pub packets_received: Option<u64>,
pub packets_received_with_ect1: Option<u64>,
pub packets_received_with_ce: Option<u64>,
pub packets_reported_as_lost: Option<u64>,
pub packets_reported_as_lost_but_recovered: Option<u64>,
pub packets_lost: Option<i64>,
pub jitter: Option<Double>,
}Expand description
Statistics measured at the receiving end of an RTP stream, known either because they’re measured locally or transmitted via an RTCP Receiver Report (RR) or Extended Report (XR) block.
Fields§
§stream: RtcRtpStreamStatsGeneric RTP stream data.
packets_received: Option<u64>Total number of RTP packets received for this SSRC.
This includes retransmissions.
At the receiving endpoint, this is calculated as defined in RFC3550 Section 6.4.1.
At the sending endpoint the packets_received is estimated by
subtracting the Cumulative Number of Packets Lost from the Extended
Highest Sequence Number Received, both reported in the
RTCP Receiver Report, and then subtracting the initial
Extended Sequence Number that was sent to this SSRC in an
RTCP Sender Report and then adding one, to mirror what is discussed in
Appendix A.3 in RFC3550, but for the sender side.
If no RTCP Receiver Report has been received yet, then is 0.
packets_received_with_ect1: Option<u64>Total number of RTP packets received for this SSRC marked with the ECT(1) marking.
packets_received_with_ce: Option<u64>Total number of RTP packets received for this SSRC marked with the CE marking.
packets_reported_as_lost: Option<u64>Total number of RTP packets for which an RFC8888 Section 3.1
report has been sent with a zero R bit.
Only exists if support for the ccfb feedback mechanism has been
negotiated.
packets_reported_as_lost_but_recovered: Option<u64>Total number of RTP packets for which an RFC8888 Section 3.1
report has been sent with a zero R bit, but a later report for the
same packet has the R bit set to 1.
Only exists if support for the ccfb feedback mechanism has been
negotiated.
packets_lost: Option<i64>Total number of RTP packets lost for this SSRC.
Calculated as defined in RFC3550 Section 6.4.1.
Note that because of how this is estimated, it can be negative if more packets are received than sent.
jitter: Option<Double>Packet jitter measured in seconds for this SSRC.
Calculated as defined in Section 6.4.1 of RFC3550.
Trait Implementations§
Source§impl Clone for RtcReceivedRtpStreamStats
impl Clone for RtcReceivedRtpStreamStats
Source§fn clone(&self) -> RtcReceivedRtpStreamStats
fn clone(&self) -> RtcReceivedRtpStreamStats
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RtcReceivedRtpStreamStats
impl Debug for RtcReceivedRtpStreamStats
Source§impl<'de> Deserialize<'de> for RtcReceivedRtpStreamStats
impl<'de> Deserialize<'de> for RtcReceivedRtpStreamStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for RtcReceivedRtpStreamStats
impl Hash for RtcReceivedRtpStreamStats
impl StructuralPartialEq for RtcReceivedRtpStreamStats
Auto Trait Implementations§
impl Freeze for RtcReceivedRtpStreamStats
impl RefUnwindSafe for RtcReceivedRtpStreamStats
impl Send for RtcReceivedRtpStreamStats
impl Sync for RtcReceivedRtpStreamStats
impl Unpin for RtcReceivedRtpStreamStats
impl UnwindSafe for RtcReceivedRtpStreamStats
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)