Struct rtcp::compound_packet::CompoundPacket
source · pub struct CompoundPacket(pub Vec<Box<dyn Packet + Send + Sync>>);
Expand description
A CompoundPacket is a collection of RTCP packets transmitted as a single packet with the underlying protocol (for example UDP).
To maximize the resolution of reception statistics, the first Packet in a CompoundPacket must always be either a SenderReport or a ReceiverReport. This is true even if no data has been sent or received, in which case an empty ReceiverReport must be sent, and even if the only other RTCP packet in the compound packet is a Goodbye.
Next, a SourceDescription containing a CNAME item must be included in each CompoundPacket to identify the source and to begin associating media for purposes such as lip-sync.
Other RTCP packet types may follow in any order. Packet types may appear more than once.
Tuple Fields§
§0: Vec<Box<dyn Packet + Send + Sync>>
Implementations§
Trait Implementations§
source§impl Clone for CompoundPacket
impl Clone for CompoundPacket
source§fn clone(&self) -> CompoundPacket
fn clone(&self) -> CompoundPacket
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompoundPacket
impl Debug for CompoundPacket
source§impl Default for CompoundPacket
impl Default for CompoundPacket
source§fn default() -> CompoundPacket
fn default() -> CompoundPacket
source§impl Display for CompoundPacket
impl Display for CompoundPacket
source§impl Marshal for CompoundPacket
impl Marshal for CompoundPacket
source§impl MarshalSize for CompoundPacket
impl MarshalSize for CompoundPacket
fn marshal_size(&self) -> usize
source§impl Packet for CompoundPacket
impl Packet for CompoundPacket
source§fn destination_ssrc(&self) -> Vec<u32>
fn destination_ssrc(&self) -> Vec<u32>
destination_ssrc returns the synchronization sources associated with this CompoundPacket’s reception report.
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 CompoundPacket
impl PartialEq for CompoundPacket
source§fn eq(&self, other: &CompoundPacket) -> bool
fn eq(&self, other: &CompoundPacket) -> bool
self
and other
values to be equal, and is used
by ==
.