pub trait EventBus<A>: Syncwhere
A: Aggregate,{
// Required method
fn publish<'life0, 'life1, 'async_trait>(
&'life0 self,
store_event: &'life1 StoreEvent<A::Event>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
The responsibility of the EventBus
trait is to publish an event on a specific bus implementation.