pub trait Writer:
'static
+ Sync
+ Send {
// Required method
fn write<'life0, 'async_trait>(
&'life0 self,
aggregate_id: EntityId,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<(), ProtocolError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}