pub struct DeterministicWallClock { /* private fields */ }Expand description
Thread-safe WallClock that advances by a fixed step on each observation.
The clock starts at start_ms and advances by step_ms after every read,
producing reproducible observations without consulting ambient host time.
Implementations§
Trait Implementations§
Source§impl Clone for DeterministicWallClock
impl Clone for DeterministicWallClock
Source§impl Debug for DeterministicWallClock
impl Debug for DeterministicWallClock
Auto Trait Implementations§
impl !Freeze for DeterministicWallClock
impl RefUnwindSafe for DeterministicWallClock
impl Send for DeterministicWallClock
impl Sync for DeterministicWallClock
impl Unpin for DeterministicWallClock
impl UnsafeUnpin for DeterministicWallClock
impl UnwindSafe for DeterministicWallClock
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