[−][src]Trait eventually::command::Handler
Associated Types
Loading content...Required methods
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 AggregateState<Self::Aggregate>,
command: Self::Command
) -> Pin<Box<dyn Future<Output = Result<Vec<AggregateEvent<Self::Aggregate>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
state: &'life1 AggregateState<Self::Aggregate>,
command: Self::Command
) -> Pin<Box<dyn Future<Output = Result<Vec<AggregateEvent<Self::Aggregate>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementors
impl<T: StaticHandler> Handler for AsHandler<T> where
T: Send + Sync,
T::Command: Send + Sync,
AggregateState<T::Aggregate>: Send + Sync,
[src]
T: Send + Sync,
T::Command: Send + Sync,
AggregateState<T::Aggregate>: Send + Sync,
type Command = T::Command
type Aggregate = T::Aggregate
type Error = T::Error
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 AggregateState<Self::Aggregate>,
command: Self::Command
) -> Pin<Box<dyn Future<Output = Result<Vec<AggregateEvent<Self::Aggregate>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
state: &'life1 AggregateState<Self::Aggregate>,
command: Self::Command
) -> Pin<Box<dyn Future<Output = Result<Vec<AggregateEvent<Self::Aggregate>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,