Trait webrtc::track::track_local::TrackLocalWriter
source · 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