Connected

Trait Connected 

Source
pub trait Connected: Send {
    // Required methods
    fn on_remote_channel(&mut self) -> Result<Receiver<Box<dyn Channel>>, Error>;
    fn off_remote_channel(
        &mut self,
        data: Receiver<Box<dyn Channel>>,
    ) -> Result<(), Error>;
    fn channel<'life0, 'async_trait>(
        &'life0 mut self,
        label: String,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Channel>, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn disconnect<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

Source

fn on_remote_channel(&mut self) -> Result<Receiver<Box<dyn Channel>>, Error>

Source

fn off_remote_channel( &mut self, data: Receiver<Box<dyn Channel>>, ) -> Result<(), Error>

Source

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

Source

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

Implementors§