Expand description
§Virtual clock for deterministic tests
Implements crate::tools::time_provider::time_provider::TimeProvider as a
manually-advanced clock. Tests set the “current” time explicitly, and every
sleep returns immediately — so a simulated network that covers hours or days
of activity runs in a few hundred milliseconds of wall time, deterministically.
Structs§
- Manual
Time Provider - Implementation of TimeProvider that allows manual control of time
- Manual
Time Provider Sleep - Future returned by ManualTimeProvider::sleep