Module saga

Source
Expand description

Saga module - belongs to the Domain layer - pure mapper of action results/events into new actions/commands

Structs§

Saga
Saga is a datatype that represents the central point of control, deciding what to execute next (A), based on the action result (AR). It has two generic parameters AR/Action Result, A/Action , representing the type of the values that Saga may contain or use. 'a is used as a lifetime parameter, indicating that all references contained within the struct (e.g., references within the function closures) must have a lifetime that is at least as long as ’a.

Traits§

ActionComputation
Formalizes the Action Computation algorithm for the saga to handle events/action_results, and produce new commands/actions.