Trait webrtc::media::track::track_local::TrackLocalWriter[][src]

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

TrackLocalWriter is the Writer for outbound RTP Packets

Required methods

write_rtp encrypts a RTP packet and writes to the connection

write encrypts and writes a full RTP packet

Implementors