pub trait Packet:
Send
+ Sync
+ Marshal
+ Unmarshal
+ Display
+ Debug {
// Required methods
fn header(&self) -> Header;
fn destination_ssrc(&self) -> Vec<u32>;
fn raw_size(&self) -> usize;
fn as_any(&self) -> &dyn Any;
fn equal(&self, other: &dyn Packet) -> bool;
fn cloned(&self) -> Box<dyn Packet>;
}Expand description
Packet represents an RTCP packet, a protocol used for out-of-band statistics and control information for an RTP session
Required Methods§
Sourcefn destination_ssrc(&self) -> Vec<u32>
fn destination_ssrc(&self) -> Vec<u32>
The SSRCs this packet is about.
Used to route feedback: a report’s destination SSRCs identify the streams it concerns, which is how an SFU decides where to forward it.
Sourcefn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Downcasting hook, so a caller holding Box<dyn Packet> can recover the concrete type.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".