Struct fake_clock::FakeClock [] [src]

pub struct FakeClock { /* fields omitted */ }

Struct representing a fake instant

Methods

impl FakeClock
[src]

[src]

Sets the thread-local fake time to the given value

[src]

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

[src]

Returns the current thread-local fake time

[src]

Returns a FakeClock instance representing the current instant.

[src]

Returns the duration that passed between self and earlier.

[src]

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

Trait Implementations

impl Clone for FakeClock
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for FakeClock
[src]

impl PartialEq for FakeClock
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for FakeClock
[src]

impl PartialOrd for FakeClock
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Debug for FakeClock
[src]

[src]

Formats the value using the given formatter.

impl Add<Duration> for FakeClock
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Duration> for FakeClock
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub<FakeClock> for FakeClock
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.