Struct MockedTimeSource
Source pub struct MockedTimeSource {
pub current_time_millis: u64,
}
Expand description
A mock implementation of TimeSource for testing purposes.
The mocked current time in milliseconds since Unix epoch
This value will be returned on all get_current_time_millis calls
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.