Module decider

Source
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§

EventComputation
Formalizes the Event Computation algorithm / event sourced system for the decider to handle commands based on the current events, and produce new events.
StateComputation
Formalizes the State Computation algorithm / state-stored system for the decider to handle commands based on the current state, and produce new state.