pub struct SimClock { /* private fields */ }Expand description
Deterministic simulation clock for tests.
Time is frozen at seed_ms until the test calls SimClock::advance_ms
or SimClock::set_ms. All operations on the internal counter use
relaxed atomics — SimClock is not intended for concurrent mutation, only
for sequential test control.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SimClock
impl RefUnwindSafe for SimClock
impl Send for SimClock
impl Sync for SimClock
impl Unpin for SimClock
impl UnsafeUnpin for SimClock
impl UnwindSafe for SimClock
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