pub trait WallClock: Send + Sync {
// Required method
fn now(&self) -> Result<WallTimestamp>;
// Provided method
fn now_ms(&self) -> Result<u64> { ... }
}Expand description
Object-safe source of optional human wall-time evidence.
Required Methods§
Sourcefn now(&self) -> Result<WallTimestamp>
fn now(&self) -> Result<WallTimestamp>
Observes wall time, which may move backward.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".