pub(crate) struct NotifyGuard<'a> {
guarded_notify: &'a Notify,
guarded_waiters: MutexGuard<'a, LinkedList<Waiter, <Waiter as Link>::Target>>,
current_state: usize,
}Expand description
A guard that provides exclusive access to a Notify’s internal
waiters list.
While this guard is held, the Notify instance’s waiter list is locked.
Fields§
§guarded_notify: &'a Notify§guarded_waiters: MutexGuard<'a, LinkedList<Waiter, <Waiter as Link>::Target>>§current_state: usizeImplementations§
Source§impl NotifyGuard<'_>
impl NotifyGuard<'_>
pub(crate) fn notify_waiters(self)
Auto Trait Implementations§
impl<'a> Freeze for NotifyGuard<'a>
impl<'a> RefUnwindSafe for NotifyGuard<'a>
impl<'a> !Send for NotifyGuard<'a>
impl<'a> !Sync for NotifyGuard<'a>
impl<'a> Unpin for NotifyGuard<'a>
impl<'a> UnwindSafe for NotifyGuard<'a>
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