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.