pub struct ReceptionReport {
pub ssrc: u32,
pub fraction_lost: u8,
pub total_lost: u32,
pub last_sequence_number: u32,
pub jitter: u32,
pub last_sender_report: u32,
pub delay: u32,
}Expand description
A ReceptionReport block conveys statistics on the reception of RTP packets from a single synchronization source.
Fields§
§ssrc: u32The SSRC identifier of the source to which the information in this reception report block pertains.
fraction_lost: u8The fraction of RTP data packets from source SSRC lost since the previous SR or RR packet was sent, expressed as a fixed point number with the binary point at the left edge of the field.
total_lost: u32The total number of RTP data packets from source SSRC that have been lost since the beginning of reception.
RFC 3550 §6.4.1 defines this as a signed 24-bit integer on the wire
(negative values can occur when duplicates arrive). This field holds the
24 bits as they are; read the signed count with
cumulative_lost and write one with
set_cumulative_lost.
last_sequence_number: u32The least significant 16 bits contain the highest sequence number received in an RTP data packet from source SSRC, and the most significant 16 bits extend that sequence number with the corresponding count of sequence number cycles.
jitter: u32An estimate of the statistical variance of the RTP data packet interarrival time, measured in timestamp units and expressed as an unsigned integer.
last_sender_report: u32The middle 32 bits out of 64 in the NTP timestamp received as part of the most recent RTCP sender report (SR) packet from source SSRC. If no SR has been received yet, the field is set to zero.
delay: u32The delay, expressed in units of 1/65536 seconds, between receiving the last SR packet from source SSRC and sending this reception report block. If no SR packet has been received yet from SSRC, the field is set to zero.
Implementations§
Source§impl ReceptionReport
impl ReceptionReport
Sourcepub fn cumulative_lost(&self) -> i32
pub fn cumulative_lost(&self) -> i32
The cumulative number of packets lost, as the signed 24-bit integer RFC 3550 6.4.1 defines.
total_lost holds the 24 bits as they are on the wire. Duplicates make the count
negative, which reads there as a value near 2^24; this sign-extends it.
Sourcepub fn set_cumulative_lost(&mut self, lost: i32)
pub fn set_cumulative_lost(&mut self, lost: i32)
Store a signed cumulative loss as its 24-bit two’s complement, clamped to the range the field can carry (RFC 3550 6.4.1).
Trait Implementations§
Source§impl Clone for ReceptionReport
impl Clone for ReceptionReport
Source§impl Debug for ReceptionReport
impl Debug for ReceptionReport
Source§impl Default for ReceptionReport
impl Default for ReceptionReport
Source§impl Display for ReceptionReport
impl Display for ReceptionReport
impl Eq for ReceptionReport
Source§impl Marshal for ReceptionReport
impl Marshal for ReceptionReport
Source§impl MarshalSize for ReceptionReport
impl MarshalSize for ReceptionReport
Source§fn marshal_size(&self) -> usize
fn marshal_size(&self) -> usize
Marshal::marshal_to will write for this value.