Trait interceptor::RTPWriter
source · pub trait RTPWriter {
// Required method
fn write<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pkt: &'life1 Packet,
attributes: &'life2 Attributes
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
RTPWriter is used by Interceptor.bind_local_stream.
Required Methods§
sourcefn write<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pkt: &'life1 Packet,
attributes: &'life2 Attributes
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn write<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
pkt: &'life1 Packet,
attributes: &'life2 Attributes
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
write a rtp packet