pub trait AggregateContextTrait<P>
where P: VecU8Message + Send + Sync + Clone + 'static,
{ // Required methods fn emit( &mut self, event_type: &str, event: Box<dyn ApplicableTo<P, Event>> ) -> Result<(), Error>; fn get_projection<'life0, 'life1, 'async_trait>( &'life0 mut self, aggregate_id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<P, Error>> + Send + 'async_trait>> where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait; }

Required Methods§

source

fn emit( &mut self, event_type: &str, event: Box<dyn ApplicableTo<P, Event>> ) -> Result<(), Error>

source

fn get_projection<'life0, 'life1, 'async_trait>( &'life0 mut self, aggregate_id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<P, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementors§