Trait rtcp::packet::Packet

source ·
pub trait Packet: 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 + Send + Sync);
    fn equal(&self, other: &(dyn Packet + Send + Sync)) -> bool;
    fn cloned(&self) -> Box<dyn Packet + Send + Sync>;
}
Expand description

Packet represents an RTCP packet, a protocol used for out-of-band statistics and control information for an RTP session

Required Methods§

source

fn header(&self) -> Header

source

fn destination_ssrc(&self) -> Vec<u32>

source

fn raw_size(&self) -> usize

source

fn as_any(&self) -> &(dyn Any + Send + Sync)

source

fn equal(&self, other: &(dyn Packet + Send + Sync)) -> bool

source

fn cloned(&self) -> Box<dyn Packet + Send + Sync>

Trait Implementations§

source§

impl Clone for Box<dyn Packet + Send + Sync>

source§

fn clone(&self) -> Box<dyn Packet + Send + Sync>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq for dyn Packet + Send + Sync

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§