pub trait IntoTypedHandler<T, Args>:
Send
+ Sync
+ 'static {
type Future: Future<Output = Result<Handled, HandlerError>> + Send + 'static;
// Required method
fn call(&self, msg: T, ctx: MessageContext) -> Self::Future;
}Expand description
A helper trait to allow registering handlers with or without context.