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