Module kaspa_utils::sim
source · Expand description
Module with structs for supporting discrete event simulation in virtual time. Inspired by python’s simpy library.
Users should define the message type T required for the simulation, derive Process<T> with
various simulation actor logic and plug the processes into a Simulation<T> instance.
Structs§
- The simulation environment
- The simulation manager
Enums§
- Process resumption trigger
- Process suspension reason
Traits§
- A simulation process