pub struct NoClock {}
Expand description
A dummy Clock
that ignores synchronization.
Choosing this clock effectively makes the simulation run as fast as possible.
Implementations§
Trait Implementations§
Source§impl Clock for NoClock
impl Clock for NoClock
Source§fn synchronize(&mut self, _: MonotonicTime) -> SyncStatus
fn synchronize(&mut self, _: MonotonicTime) -> SyncStatus
Returns immediately with status SyncStatus::Synchronized
.
impl Copy for NoClock
Auto Trait Implementations§
impl Freeze for NoClock
impl RefUnwindSafe for NoClock
impl Send for NoClock
impl Sync for NoClock
impl Unpin for NoClock
impl UnwindSafe for NoClock
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