Struct rtcp::extended_report::rle::RLEReportBlock
source · pub struct RLEReportBlock {
pub is_loss_rle: bool,
pub t: u8,
pub ssrc: u32,
pub begin_seq: u16,
pub end_seq: u16,
pub chunks: Vec<Chunk>,
}
Expand description
RleReportBlock defines the common structure used by both Loss RLE report blocks (RFC 3611 §4.1) and Duplicate RLE report blocks (RFC 3611 §4.2).
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | BT = 1 or 2 | rsvd. | t | block length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ssrc of source | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | begin_seq | end_seq | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | chunk 1 | chunk 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ : … : +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | chunk n-1 | chunk n | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§is_loss_rle: bool
§t: u8
§ssrc: u32
§begin_seq: u16
§end_seq: u16
§chunks: Vec<Chunk>
Implementations§
Trait Implementations§
source§impl Clone for RLEReportBlock
impl Clone for RLEReportBlock
source§fn clone(&self) -> RLEReportBlock
fn clone(&self) -> RLEReportBlock
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RLEReportBlock
impl Debug for RLEReportBlock
source§impl Default for RLEReportBlock
impl Default for RLEReportBlock
source§fn default() -> RLEReportBlock
fn default() -> RLEReportBlock
source§impl Display for RLEReportBlock
impl Display for RLEReportBlock
source§impl Marshal for RLEReportBlock
impl Marshal for RLEReportBlock
source§impl MarshalSize for RLEReportBlock
impl MarshalSize for RLEReportBlock
fn marshal_size(&self) -> usize
source§impl Packet for RLEReportBlock
impl Packet for RLEReportBlock
source§fn destination_ssrc(&self) -> Vec<u32>
fn destination_ssrc(&self) -> Vec<u32>
destination_ssrc returns an array of ssrc values that this report block refers to.
fn header(&self) -> Header
fn raw_size(&self) -> usize
fn as_any(&self) -> &(dyn Any + Send + Sync)
fn equal(&self, other: &(dyn Packet + Send + Sync)) -> bool
fn cloned(&self) -> Box<dyn Packet + Send + Sync>
source§impl PartialEq for RLEReportBlock
impl PartialEq for RLEReportBlock
source§fn eq(&self, other: &RLEReportBlock) -> bool
fn eq(&self, other: &RLEReportBlock) -> bool
self
and other
values to be equal, and is used
by ==
.