Expand description
Core simulation engine for deterministic testing. Core simulation engine for deterministic testing.
This module provides the central SimWorld coordinator that manages time, event processing, and network simulation state.
§Submodules
world- Core SimWorld and WeakSimWorld typesevents- Event types and queue for schedulingstate- Network state management (connections, partitions, clogs)wakers- Waker management for async coordinationsleep- Sleep future for simulation timerng- Thread-local random number generation
Re-exports§
pub use events::ConnectionStateChange;pub use events::Event;pub use events::EventQueue;pub use events::NetworkOperation;pub use events::ScheduledEvent;pub use rng::get_current_sim_seed;pub use rng::reset_sim_rng;pub use rng::set_sim_seed;pub use rng::sim_random;pub use rng::sim_random_f64;pub use rng::sim_random_range;pub use rng::sim_random_range_or_default;pub use sleep::SleepFuture;pub use world::SimWorld;pub use world::WeakSimWorld;
Modules§
- events
- Event scheduling and processing for the simulation engine.
- rng
- Thread-local random number generation for simulation.
- sleep
- Sleep functionality for simulation time.
- state
- Network state management for simulation.
- wakers
- Waker management for async coordination.
- world
- Core simulation world and coordination logic.