Skip to main content

ClockNow

Trait ClockNow 

Source
pub trait ClockNow {
    // Required methods
    fn now_nanos(&self) -> u64;
    fn now_millis(&self) -> u64;
}

Required Methods§

Source

fn now_nanos(&self) -> u64

Source

fn now_millis(&self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§