pub trait Handler<A, B> {
type Error;
type Fut: Future<Output = Result<B, Self::Error>>;
// Required method
fn call(&mut self, event: A, context: Context) -> Self::Fut;
}Expand description
A trait describing an asynchronous function A to B.