Trait webrtc_ice::udp_mux::UDPMux

source ·
pub trait UDPMux {
    // Required methods
    fn close<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_conn<'life0, 'async_trait>(
        self: Arc<Self>,
        ufrag: &'life0 str
    ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn Conn + Send + Sync>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn remove_conn_by_ufrag<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ufrag: &'life1 str
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn close<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Close the muxing.

source

fn get_conn<'life0, 'async_trait>( self: Arc<Self>, ufrag: &'life0 str ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn Conn + Send + Sync>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the underlying connection for a given ufrag.

source

fn remove_conn_by_ufrag<'life0, 'life1, 'async_trait>( &'life0 self, ufrag: &'life1 str ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Remove the underlying connection for a given ufrag.

Implementors§