Trait aliri_clock::Clock[][src]

pub trait Clock {
    fn now(&self) -> UnixTime;
}
Expand description

Represents a clock, which can tell the current time

Required methods

fn now(&self) -> UnixTime[src]

Expand description

Gets the current time according to this clock

Loading content...

Implementors

impl Clock for System[src]

fn now(&self) -> UnixTime[src]

impl Clock for TestClock[src]

fn now(&self) -> UnixTime[src]

Loading content...