pub trait TimeSource {
// Required method
fn get_timestamp(&self) -> Timestamp;
}Expand description
Things that impl this can tell you the current time.
Required Methods§
Sourcefn get_timestamp(&self) -> Timestamp
fn get_timestamp(&self) -> Timestamp
Returns the current time
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".