pub trait TimeSource:
Debug
+ Send
+ Sync {
// Required method
fn now(&self) -> SystemTime;
}
Expand description
Trait with a now()
function returning the current time
Required Methods§
Sourcefn now(&self) -> SystemTime
fn now(&self) -> SystemTime
Returns the current time