Skip to main content

Module sim

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

Environment
The simulation environment
Simulation
The simulation manager

Enums§

Resumption
Process resumption trigger
Suspension
Process suspension reason

Traits§

Process
A simulation process

Type Aliases§

BoxedProcess