enum Wait {
Fire,
Idle,
Sleep(Duration),
}Expand description
What the thread should do next. Pure — no clock read, no lock — so
the_wait_plan_never_overshoots pins the never-overshoot rule without
timing anything.
Variants§
Fire
The head is due now; fire it before waiting again.
Idle
Nothing is armed; park on the condvar with no timeout.
Sleep(Duration)
Sleep this long, then re-read the heap.
Trait Implementations§
impl Eq for Wait
impl StructuralPartialEq for Wait
Auto Trait Implementations§
impl Freeze for Wait
impl RefUnwindSafe for Wait
impl Send for Wait
impl Sync for Wait
impl Unpin for Wait
impl UnsafeUnpin for Wait
impl UnwindSafe for Wait
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