Trait vin_core::Handler

source ·
pub trait Handler<M: Message> {
    // Required method
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        msg: M
    ) -> Pin<Box<dyn Future<Output = Result<M::Result>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Handler for specifying message handling logic.

Required Methods§

source

fn handle<'life0, 'async_trait>( &'life0 self, msg: M ) -> Pin<Box<dyn Future<Output = Result<M::Result>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§