pub trait Handler<A, B> { type Error; type Fut: Future; fn call(&self, event: A, context: Context) -> Self::Fut; }
A trait describing an asynchronous function A to B.
A
B
Errors returned by this handler.
Response of this handler.
Handle the incoming event.