Trait webrtc_turn::relay::RelayAddressGenerator[][src]

pub trait RelayAddressGenerator {
    fn validate(&self) -> Result<(), Error>;
#[must_use] fn allocate_conn<'life0, 'async_trait>(
        &'life0 self,
        use_ipv4: bool,
        requested_port: u16
    ) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn Conn + Send + Sync>, SocketAddr), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

fn validate(&self) -> Result<(), Error>[src]

#[must_use]fn allocate_conn<'life0, 'async_trait>(
    &'life0 self,
    use_ipv4: bool,
    requested_port: u16
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn Conn + Send + Sync>, SocketAddr), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl RelayAddressGenerator for RelayAddressGeneratorNone[src]

impl RelayAddressGenerator for RelayAddressGeneratorRanges[src]

impl RelayAddressGenerator for RelayAddressGeneratorStatic[src]

Loading content...