pub struct ManualClock { /* private fields */ }Expand description
A clock that only moves when told to.
Clones share one timeline starting at its origin, so a test keeps a handle, gives the builder another, and advances time without waiting.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ManualClock
impl Freeze for ManualClock
impl Move for ManualClock
impl RefUnwindSafe for ManualClock
impl Send for ManualClock
impl Sync for ManualClock
impl Unpin for ManualClock
impl UnsafeUnpin for ManualClock
impl UnwindSafe for ManualClock
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