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§
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>
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".