Skip to main content

vortex_sim/
lib.rs

1//! `vortex-sim` — Simulated I/O implementations for Vortex.
2//!
3//! Provides deterministic, fault-injectable replacements for real I/O:
4//! - [`SimNetwork`] — in-process network with latency, drops, partitions, reordering
5//! - [`SimStorage`] — in-memory storage with crash, corruption, and disk-full simulation
6//! - [`SimClock`] — virtual clock with per-node skew, drift, and step jumps
7
8mod clock;
9mod network;
10mod storage;
11
12pub use clock::SimClock;
13pub use network::{InFlightMessage, LinkConfig, SimNetwork};
14pub use storage::{DiskModel, SimStorage, SimWal, StorageFaultConfig, WalEntry, WalOp};