pub enum ClockMode {
Logical,
Wall,
}Expand description
How the scheduler’s clock advances.
Variants§
Logical
Virtual time: Sleep/After are ordered logically and elapse instantly.
Deterministic and wall-clock-free — the default, used by tests and TV.
Wall
Real time: timers map to actual sleeps (production, non-replay runs).
Trait Implementations§
impl Copy for ClockMode
impl Eq for ClockMode
impl StructuralPartialEq for ClockMode
Auto Trait Implementations§
impl Freeze for ClockMode
impl RefUnwindSafe for ClockMode
impl Send for ClockMode
impl Sync for ClockMode
impl Unpin for ClockMode
impl UnsafeUnpin for ClockMode
impl UnwindSafe for ClockMode
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