pub struct CondVarStorage { /* private fields */ }Expand description
Condition variable. Pair with Mutex<T> to wait on state changes.
API matches parking_lot::Condvar shape — wait consumes the
guard, returns it re-acquired. Predicate variants
(wait_while*) loop internally so callers can’t accidentally write
the buggy if cv.wait_for(...) ... && ready pattern.
Caller-owned storage for a CondVar in zero-heap mode (see MutexStorage).
Implementations§
Trait Implementations§
Source§impl Default for CondVarStorage
impl Default for CondVarStorage
impl Sync for CondVarStorage
Auto Trait Implementations§
impl !Freeze for CondVarStorage
impl !RefUnwindSafe for CondVarStorage
impl Send for CondVarStorage
impl Unpin for CondVarStorage
impl UnsafeUnpin for CondVarStorage
impl UnwindSafe for CondVarStorage
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