pub trait Relays {
    // Required method
    fn create_relay<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 Context,
        address: &'life2 MultiAddr,
        alias: Option<String>,
        authorized: Option<Identifier>
    ) -> Pin<Box<dyn Future<Output = Result<RelayInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

source

fn create_relay<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 Context, address: &'life2 MultiAddr, alias: Option<String>, authorized: Option<Identifier> ) -> Pin<Box<dyn Future<Output = Result<RelayInfo>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§