Skip to main content

Stopped

Type Alias Stopped 

Source
pub type Stopped = Clock<StoppedClock>;
Expand description

The stopped clock. It returns always the same fixed time.

Aliased Type§

pub struct Stopped { /* private fields */ }

Trait Implementations§

Source§

impl Stopped for Stopped

Source§

fn local_set(unix_time: &DurationSinceUnixEpoch)

It sets the clock to a given time.
Source§

fn local_set_to_app_start_time()

It sets the clock to the time the application started.
Source§

fn local_set_to_system_time_now()

It sets the clock to the current system time.
Source§

fn local_add(duration: &Duration) -> Result<(), IntErrorKind>

It adds a Duration to the clock. Read more
Source§

fn local_sub(duration: &Duration) -> Result<(), IntErrorKind>

It subtracts a Duration from the clock. Read more
Source§

fn local_reset()

It resets the clock to default fixed time that is application start time (or the unix epoch when testing).
Source§

fn local_set_to_unix_epoch()

It sets the clock to the Unix Epoch.
Source§

impl Time for Stopped