Skip to main content

ClockBase

Trait ClockBase 

Source
pub trait ClockBase:
    Send
    + Sync
    + Debug
    + 'static {
    const NAME: &'static str;

    // Required method
    fn now(&self) -> DateTime<Utc>;
}
Expand description

Trait for something giving time with now().

Required Associated Constants§

Source

const NAME: &'static str

Required Methods§

Source

fn now(&self) -> DateTime<Utc>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl ClockBase for NoRemote

Source§

const NAME: &'static str = "NoRemote"

Source§

impl ClockBase for RunningCheatClock

Source§

const NAME: &'static str = "RunningCheatClock"

Source§

impl ClockBase for RunningCheatClockRemote

Source§

const NAME: &'static str = "RunningCheatClockRemote"

Source§

impl ClockBase for StableCheatClock

Source§

const NAME: &'static str = "StableCheatClock"

Source§

impl ClockBase for StableCheatClockRemote

Source§

const NAME: &'static str = "StableCheatClockRemote"

Source§

impl ClockBase for TrueClock

Source§

const NAME: &'static str = "TrueClock"