Trait rtp::packetizer::Payloader

source ·
pub trait Payloader: Debug {
    // Required methods
    fn payload(&mut self, mtu: usize, b: &Bytes) -> Result<Vec<Bytes>, Error>;
    fn clone_to(&self) -> Box<dyn Payloader + Send + Sync>;
}
Expand description

Payloader payloads a byte array for use as rtp.Packet payloads

Required Methods§

source

fn payload(&mut self, mtu: usize, b: &Bytes) -> Result<Vec<Bytes>, Error>

source

fn clone_to(&self) -> Box<dyn Payloader + Send + Sync>

Trait Implementations§

source§

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

source§

fn clone(&self) -> Box<dyn Payloader + 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

Implementors§