Expand description
The clock allows us to control the behaviour of all time dependent events in both real and simulated time throughout the system
Structs§
- Real
Clock - An adapter for tokio::time::sleep to be used in production
- SimClock
- Clock to be used in simulator runs that allows the simnet to create a scheduled event for. When the wakeup event becomes the next earliest scheduled event, the simnet will advance it’s time to the wakeup time and use the transmitter to wake up this green thread
- Timeout
Error - Errors returned by
Timeout
.
Enums§
- Clock
Kind - An adapter that allows us to control the behaviour of sleep between performing a real sleep and a sleep on the simnet
Traits§
- Clock
- The Sleeps trait allows different implementations to control the behavior of sleep.