pub trait TrackLocalWriter: Debug {
    // Required methods
    fn write_rtp<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Packet
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn write<'life0, 'life1, 'async_trait>(
        &'life0 self,
        b: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

TrackLocalWriter is the Writer for outbound RTP Packets

Required Methods§

source

fn write_rtp<'life0, 'life1, 'async_trait>( &'life0 self, p: &'life1 Packet ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

write_rtp encrypts a RTP packet and writes to the connection

source

fn write<'life0, 'life1, 'async_trait>( &'life0 self, b: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

write encrypts and writes a full RTP packet

Implementors§