pub struct SimulatedClock { /* private fields */ }Expand description
Simulated wall clock with drift, skew, and freeze controls.
Implementations§
Source§impl SimulatedClock
impl SimulatedClock
Sourcepub fn now_millis(&self, round: u64) -> i64
pub fn now_millis(&self, round: u64) -> i64
Return current wall time in milliseconds for a simulation round.
Trait Implementations§
Source§impl Clone for SimulatedClock
impl Clone for SimulatedClock
Source§fn clone(&self) -> SimulatedClock
fn clone(&self) -> SimulatedClock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimulatedClock
impl Debug for SimulatedClock
Source§impl PartialEq for SimulatedClock
impl PartialEq for SimulatedClock
impl Copy for SimulatedClock
impl Eq for SimulatedClock
impl StructuralPartialEq for SimulatedClock
Auto Trait Implementations§
impl Freeze for SimulatedClock
impl RefUnwindSafe for SimulatedClock
impl Send for SimulatedClock
impl Sync for SimulatedClock
impl Unpin for SimulatedClock
impl UnsafeUnpin for SimulatedClock
impl UnwindSafe for SimulatedClock
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