pub trait CommandHandler<C, E>: Send + Sync{
// Required method
fn handle<'life0, 'async_trait>(
&'life0 self,
command: C,
) -> Pin<Box<dyn Future<Output = Result<Vec<E>, CommandError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Command handler trait