pub struct FakeClock { /* private fields */ }Expand description
A substute for the real clock for testing purposes, can be cloned but still refer to the same shared time, which can be updated centrally from tests.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FakeClock
impl !RefUnwindSafe for FakeClock
impl Send for FakeClock
impl Sync for FakeClock
impl Unpin for FakeClock
impl UnsafeUnpin for FakeClock
impl !UnwindSafe for FakeClock
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