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. '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

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