Clock

Trait Clock 

Source
pub trait Clock: Copy {
    type Instant: Copy + Ord;

    // Required method
    fn now(self) -> Self::Instant;
}

Required Associated Types§

Required Methods§

Source

fn now(self) -> Self::Instant

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§