Skip to main content

Module clock

Module clock 

Source
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 trait
  • WallClock - Wall-clock time trait
  • MockClock - Deterministic mock clock
  • Rng - Random number generation trait
  • SeededRng - Xorshift64-based seeded RNG

§Async Extensions

This module adds AsyncClock which extends Clock with async sleep.

Structs§

MockClock
Mock clock for deterministic testing.
SeededRng
Seeded RNG for reproducible randomness.

Traits§

AsyncClock
Extension trait adding async sleep to Clock.
Clock
Trait for monotonic time in protocol execution.
Rng
Trait for random number generation in protocol execution.
WallClock
Trait for wall-clock timestamps used in metadata.