pub trait Connector {
    // Required methods
    fn connected<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 Id
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn disconnected<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 Id
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Required Methods§

source

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

source

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

Implementors§