pub struct DeterministicGatewayClock { /* private fields */ }Expand description
GatewayClock that advances by a fixed step on each read.
Starts at start_ms and adds step_ms after every GatewayClock::now_ms
call, producing reproducible timestamps for tests.
Implementations§
Trait Implementations§
Source§impl Clone for DeterministicGatewayClock
impl Clone for DeterministicGatewayClock
Source§fn clone(&self) -> DeterministicGatewayClock
fn clone(&self) -> DeterministicGatewayClock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeterministicGatewayClock
impl Debug for DeterministicGatewayClock
Auto Trait Implementations§
impl Freeze for DeterministicGatewayClock
impl RefUnwindSafe for DeterministicGatewayClock
impl Send for DeterministicGatewayClock
impl Sync for DeterministicGatewayClock
impl Unpin for DeterministicGatewayClock
impl UnsafeUnpin for DeterministicGatewayClock
impl UnwindSafe for DeterministicGatewayClock
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