pub struct FixedClock(pub SystemTime);Expand description
A clock frozen at one instant, for deterministic tests.
Tuple Fields§
§0: SystemTimeTrait Implementations§
Source§impl Clock for FixedClock
impl Clock for FixedClock
fn now(&self) -> SystemTime
Source§impl Clone for FixedClock
impl Clone for FixedClock
impl Copy for FixedClock
Auto Trait Implementations§
impl Forget for FixedClock
impl Freeze for FixedClock
impl Move for FixedClock
impl RefUnwindSafe for FixedClock
impl Send for FixedClock
impl Sync for FixedClock
impl Unpin for FixedClock
impl UnsafeUnpin for FixedClock
impl UnwindSafe for FixedClock
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