Skip to main content

Module adapter

Module adapter 

Source
Expand description

Injected adapter traits for filesystem, clock, and RNG access.

Module root: declarations and re-exports only.

Re-exports§

pub use clock::Clock;
pub use clock::FakeClock;
pub use clock::OsClock;
pub use fs::Fs;
pub use fs::MemFs;
pub use fs::OsFs;
pub use rng::FakeRng;
pub use rng::OsRng;
pub use rng::Rng;

Modules§

clock
Clock adapter trait and implementations.
fs
Filesystem adapter trait and implementations.
rng
Random-number-generator adapter trait, OS-backed implementation, and deterministic test fake.