Expand description
Clock and RNG traits for deterministic simulation.
This module re-exports the core effect traits from telltale_types::effects
and provides async extensions for use in choreography testing.
§Re-exports
The following are re-exported from telltale_types::effects:
Clock- Monotonic time traitWallClock- Wall-clock time traitMockClock- Deterministic mock clockRng- Random number generation traitSeededRng- Xorshift64-based seeded RNG
§Async Extensions
This module adds AsyncClock which extends Clock with async sleep.
Structs§
Traits§
- Async
Clock - Extension trait adding async sleep to
Clock. - Clock
- Trait for monotonic time in protocol execution.
- Rng
- Trait for random number generation in protocol execution.
- Wall
Clock - Trait for wall-clock timestamps used in metadata.