Trait RouterAsyncExt

Source
pub trait RouterAsyncExt: PlainMessageRouter {
    // Required method
    fn route_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        message: &'life1 PlainMessage,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Async extension trait for the PlainMessageRouter

Required Methods§

Source

fn route_message<'life0, 'life1, 'async_trait>( &'life0 self, message: &'life1 PlainMessage, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Route a message asynchronously

Implementors§