[][src]Trait eventmill::aggregate::Aggregate

pub trait Aggregate<E> where
    E: 'static,
    Self: 'static + Sized + WithAggregateId
{ fn apply_event(&mut self, event: DomainEventView<E, Self>); fn apply_all_events<'a>(
        &mut self,
        events: impl IntoIterator<Item = DomainEventView<'a, E, Self>>
    ) { ... } }

Required methods

fn apply_event(&mut self, event: DomainEventView<E, Self>)

Loading content...

Provided methods

fn apply_all_events<'a>(
    &mut self,
    events: impl IntoIterator<Item = DomainEventView<'a, E, Self>>
)

Loading content...

Implementors

impl<E, S> Aggregate<E> for VersionedAggregate<S> where
    E: 'static,
    S: Aggregate<E> + AggregateType
[src]

Loading content...