[][src]Trait eventually::command::Handler

pub trait Handler {
    type Command;
    type Aggregate: Aggregate;
    type 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
; }

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, 

Loading content...

Implementors

impl<T: StaticHandler> Handler for AsHandler<T> where
    T: Send + Sync,
    T::Command: Send + Sync,
    AggregateState<T::Aggregate>: Send + Sync
[src]

type Command = T::Command

type Aggregate = T::Aggregate

type Error = T::Error

Loading content...