Expand description
Decider module - belongs to the Domain
layer - pure decision making component - pure logic
Structs§
- Decider
- Decider represents the main decision-making algorithm.
It has three generic parameters
C
/Command
,S
/State
,E
/Event
, representing the type of the values that Decider 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§
- Event
Computation - Formalizes the
Event Computation
algorithm / event sourced system for thedecider
to handle commands based on the current events, and produce new events. - State
Computation - Formalizes the
State Computation
algorithm / state-stored system for thedecider
to handle commands based on the current state, and produce new state.