Module fmodel_rust::decider
source · Expand description
Decider module - belongs to the Domain layer - pure decision making component - pure logic
Structs
- 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.'ais 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
- Formalizes the
Event Computationalgorithm / event sourced system for thedeciderto handle commands based on the current events, and produce new events. - Formalizes the
State Computationalgorithm / state-stored system for thedeciderto handle commands based on the current state, and produce new state.