Expand description
Deterministic in-memory implementations of every seams-rs-core port.
ManualClock advances via explicit test calls. InstantSleeper
returns immediately and records requested durations. CurrentThreadSpawner
runs spawn_blocking closures inline; DeferredSpawner captures
handles for explicit test-controlled joining. MemoryFileSystem
is an in-memory VFS exposing both FileSystem and
AsyncFileSystem backed by the same state, with scripted
error injection by (path, FsOp).
Re-exports§
pub use memory_fs::FsOp;pub use memory_fs::MemoryFileSystem;
Modules§
- memory_
fs MemoryFileSystem: in-memory VFS implementing both the syncFileSystemand asyncAsyncFileSystemports over the same state.
Structs§
- Current
Thread Spawner - Spawner that runs each closure synchronously on the calling thread.
- Deferred
Spawner - Spawner that defers closure execution until
run_pending/join_allor an explicitjoinon the returned handle. - Instant
Sleeper - Sleeper that records each request and returns immediately.
- Manual
Clock - Clock whose time advances only via explicit
advance/set_now_nscalls.