pub trait Clock {
// Required method
fn now(&self) -> SystemTime;
}Expand description
Abstraction over wall-clock time.
Injected wherever zenith-session needs the current time, so tests can substitute a fixed value without relying on the real system clock.
Required Methods§
fn now(&self) -> SystemTime
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".