pub trait RTPReader {
    // Required method
    fn read<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        buf: &'life1 mut [u8],
        attributes: &'life2 Attributes
    ) -> Pin<Box<dyn Future<Output = Result<(Packet, Attributes), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

RTPReader is used by Interceptor.bind_remote_stream.

Required Methods§

source

fn read<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, buf: &'life1 mut [u8], attributes: &'life2 Attributes ) -> Pin<Box<dyn Future<Output = Result<(Packet, Attributes), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

read a rtp packet

Implementations on Foreign Types§

source§

impl RTPReader for Stream

source§

fn read<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, buf: &'life1 mut [u8], a: &'life2 Attributes ) -> Pin<Box<dyn Future<Output = Result<(Packet, Attributes), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§