pub trait Time {
// Required method
fn unix_time_now(&self) -> u64;
}Expand description
Time trait to provide current unix time. Mainly defined to facilitate testing.
Required Methods§
Sourcefn unix_time_now(&self) -> u64
fn unix_time_now(&self) -> u64
Must return the unix epoch corresponding to the current time.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".