pub struct MockedTimeSource {
pub current_time_millis: u64,
}
Expand description
A mock implementation of TimeSource
for testing purposes.
Fields§
§current_time_millis: u64
The mocked current time in milliseconds since Unix epoch
This value will be returned on all get_current_time_millis
calls
Auto Trait Implementations§
impl Freeze for MockedTimeSource
impl RefUnwindSafe for MockedTimeSource
impl Send for MockedTimeSource
impl Sync for MockedTimeSource
impl Unpin for MockedTimeSource
impl UnwindSafe for MockedTimeSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more