Trait causality::Actor [−][src]
Entity that handles Causes
producing one or more Effects
upon success.
Implemented for Root Aggregates
or Aggregates
in Event Sourcing
.
Associated Types
Loading content...Required methods
fn handle(&self, cause: C) -> Result<Vec<E>, Err>
[src]
Handle Cause
returning vector of Effects
or error.
fn apply(&mut self, effects: Vec<E>) -> Result<(), Err>
[src]
Apply Effects
on Actor.