pub trait SystemTimeSource {
// Required methods
fn with_current_time() -> Self;
fn now(&self) -> SystemTime;
}
Required Methods§
fn with_current_time() -> Self
fn now(&self) -> SystemTime
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.