Struct fake_clock::FakeClock [] [src]

pub struct FakeClock { /* fields omitted */ }

Struct representing a fake instant

Methods

impl FakeClock
[src]

Sets the thread-local fake time to the given value

Advances the thread-local fake time by the given amount of milliseconds

Returns the current thread-local fake time

Returns a FakeClock instance representing the current instant.

Returns the duration that passed between self and earlier.

Returns how much fake time has elapsed since the creation of self.

Trait Implementations

impl Clone for FakeClock
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for FakeClock
[src]

impl PartialEq for FakeClock
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for FakeClock
[src]

impl PartialOrd for FakeClock
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for FakeClock
[src]

This method returns an Ordering between self and other. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl Debug for FakeClock
[src]

Formats the value using the given formatter.

impl Add<Duration> for FakeClock
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Duration> for FakeClock
[src]

The resulting type after applying the - operator

The method for the - operator

impl Sub<FakeClock> for FakeClock
[src]

The resulting type after applying the - operator

The method for the - operator