pub struct AdvanceableTimer { /* private fields */ }Expand description
A timer whose sleeps resolve only when MockClock::advance_and_fire is called.
Pair with MockClock for deterministic time-travel tests.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvanceableTimer
impl RefUnwindSafe for AdvanceableTimer
impl Send for AdvanceableTimer
impl Sync for AdvanceableTimer
impl Unpin for AdvanceableTimer
impl UnsafeUnpin for AdvanceableTimer
impl UnwindSafe for AdvanceableTimer
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