ClockSource

Trait ClockSource 

Source
pub trait ClockSource: Default {
    // Required method
    fn current_timestamp(&self) -> i64;
}
Expand description

Provides current time.

Required Methods§

Source

fn current_timestamp(&self) -> i64

The current timestamp in milliseconds since the Unix epoch.

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.

Implementors§