pub struct LossRle<'a> { /* private fields */ }
Expand description
Run-Length-Encoded packet loss information as specified in RFC 3611
Implementations§
Source§impl LossRle<'_>
impl LossRle<'_>
Sourcepub fn thinning(&self) -> u8
pub fn thinning(&self) -> u8
The amount of thinning applied to the sequence number space. Every 2^thinning sequence number has been reported
Sourcepub fn media_ssrc(&self) -> u32
pub fn media_ssrc(&self) -> u32
The SSRC of the media being reported on
Sourcepub fn begin(&self) -> u16
pub fn begin(&self) -> u16
This is the (inclusive) start of the sequence number range being reported in this Rle block. This start value is included in the range.
Sourcepub fn end(&self) -> u16
pub fn end(&self) -> u16
This is the (exclusive) end of the sequence number range being reported in this Rle block. This end value is not included in the range.
Sourcepub fn sequence_iter(&self) -> impl Iterator<Item = u16> + '_
pub fn sequence_iter(&self) -> impl Iterator<Item = u16> + '_
An iterator over the sequence numbers in this LossRle
.
Sourcepub fn chunk_iter(&self) -> impl Iterator<Item = RleChunk> + '_
pub fn chunk_iter(&self) -> impl Iterator<Item = RleChunk> + '_
An iterator over the chunks in this LossRle
.
This returns chunks as they are stored without any sequence number translation applied. i.e. each chunk starts from a sequence number of 0.
Sourcepub fn builder() -> LossRleBuilder
pub fn builder() -> LossRleBuilder
Returns a LossRleBuilder
for constructing a LossRle
block.