Skip to main content

Crate seams_rs_std

Crate seams_rs_std 

Source
Expand description

Standard-library-backed production adapters for seams-rs-core.

  • SystemClock wraps std::time::SystemTime::now.
  • StdSleeper wraps std::thread::sleep.
  • StdSpawner wraps std::thread::spawn.
  • StdFileSystem wraps std::fs::*.
  • TokioFileSystem wraps tokio::fs::*.

Re-exports§

pub use fs::StdFileSystem;
pub use fs::TokioFileSystem;

Modules§

fs
StdFileSystem and TokioFileSystem: thin wrappers around std::fs and tokio::fs implementing the seams-rs-core port surface. Every method delegates directly with no logic of its own.

Structs§

StdSleeper
Sleeper backed by std::thread::sleep.
StdSpawner
Spawner backed by std::thread::spawn.
SystemClock
Clock driven by SystemTime::now + Instant::now.