pub struct WaitList<T: Clone> { /* private fields */ }
Expand description
WaitList provides the main collection.
Implementations§
source§impl<T: Clone> WaitList<T>
impl<T: Clone> WaitList<T>
sourcepub fn link(&self, t: T) -> WaitGuard<'_, T>
pub fn link(&self, t: T) -> WaitGuard<'_, T>
Link into the wait list with the wait guard set to t
.
sourcepub fn unlink(&self, guard: WaitGuard<'_, T>)
pub fn unlink(&self, guard: WaitGuard<'_, T>)
Unlink the provided guard
.
§Panics
Panics if this guard was not one returned from a prior call to link. Guards provided via iterators are not eligible for this function.
sourcepub fn notify_head(&self)
pub fn notify_head(&self)
Notify the first waiter in the list. Notification is dropped if there is no waiter.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for WaitList<T>
impl<T> Send for WaitList<T>where
T: Send,
impl<T> Sync for WaitList<T>where
T: Send,
impl<T> Unpin for WaitList<T>where
T: Unpin,
impl<T> UnwindSafe for WaitList<T>
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