pub struct WaitQueue<const N: usize> { /* private fields */ }Expand description
Bounded, allocation-free registrations. Notifications preserve reservations until cancellation, preventing a woken opening from clearing a reused slot. Callers must check readiness, register, then recheck before returning Pending.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> !Freeze for WaitQueue<N>
impl<const N: usize> !RefUnwindSafe for WaitQueue<N>
impl<const N: usize> Send for WaitQueue<N>
impl<const N: usize> Sync for WaitQueue<N>
impl<const N: usize> Unpin for WaitQueue<N>
impl<const N: usize> UnsafeUnpin for WaitQueue<N>
impl<const N: usize> UnwindSafe for WaitQueue<N>
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