pub trait CommandHandler<C: Command>:
'static
+ Sync
+ Send {
type Event: Event;
type Rejection: Debug + 'static + Sync + Send;
// Required method
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
command: C,
ctx: &'life1 mut Context,
) -> Pin<Box<dyn Future<Output = Result<Self::Event, Self::Rejection>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}