Struct interceptor::mock::mock_time::MockTime
source · pub struct MockTime { /* private fields */ }
Expand description
MockTime is a helper to replace SystemTime::now() for testing purposes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MockTime
impl RefUnwindSafe for MockTime
impl Send for MockTime
impl Sync for MockTime
impl Unpin for MockTime
impl UnwindSafe for MockTime
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