pub struct DeterministicClock { /* private fields */ }Expand description
Stepping clock that ignores wall time.
The harness calls DeterministicClock::advance between rounds;
now returns the accumulated nanoseconds. Timeouts in protocol
plugins should consult this (via the env handle) rather than
SystemTime, so a slow CI box doesn’t trip a timeout the vector
never intended to fire.
Implementations§
Trait Implementations§
Source§impl Debug for DeterministicClock
impl Debug for DeterministicClock
Source§impl Default for DeterministicClock
impl Default for DeterministicClock
Source§fn default() -> DeterministicClock
fn default() -> DeterministicClock
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for DeterministicClock
impl !RefUnwindSafe for DeterministicClock
impl !Sync for DeterministicClock
impl Send for DeterministicClock
impl Unpin for DeterministicClock
impl UnsafeUnpin for DeterministicClock
impl UnwindSafe for DeterministicClock
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