pub trait Host: Send {
    // Required method
    fn send<'life0, 'async_trait>(
        &'life0 mut self,
        c: Resource<Client>,
        topic: Topic,
        message: Resource<Message>,
    ) -> Pin<Box<dyn Future<Output = Result<Result<(), Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn send<'life0, 'async_trait>( &'life0 mut self, c: Resource<Client>, topic: Topic, message: Resource<Message>, ) -> Pin<Box<dyn Future<Output = Result<Result<(), Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends the message using the given client.

Implementations on Foreign Types§

source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

source§

fn send<'life0, 'async_trait>( &'life0 mut self, c: Resource<Client>, topic: Topic, message: Resource<Message>, ) -> Pin<Box<dyn Future<Output = Result<Result<(), Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends the message using the given client.

Implementors§