pub struct Notifier<'d> { /* private fields */ }Expand description
A notification snapshots the waiter count; re-registration cannot extend it.
Implementations§
Source§impl<'d> Notifier<'d>
impl<'d> Notifier<'d>
pub const fn new(driver: Reference<'d>, capacity: Capacity) -> Self
pub fn try_register<'target, 'poll>( &'target self, waiter: Pin<&Waiter<'target, 'd>>, context: &Context<'poll, 'd>, ) -> Result<(), Error<'d>>
pub fn contains(&self, waiter: &Waiter<'_, 'd>) -> bool
Sourcepub fn flush(&self, work: Work<'_, 'd>)
pub fn flush(&self, work: Work<'_, 'd>)
Wakes at most one waiter within the application’s work budget.
pub fn is_pending(&self) -> bool
Auto Trait Implementations§
impl<'d> !Freeze for Notifier<'d>
impl<'d> !RefUnwindSafe for Notifier<'d>
impl<'d> !Send for Notifier<'d>
impl<'d> !Sync for Notifier<'d>
impl<'d> !UnwindSafe for Notifier<'d>
impl<'d> Forget for Notifier<'d>
impl<'d> Move for Notifier<'d>
impl<'d> Unpin for Notifier<'d>
impl<'d> UnsafeUnpin for Notifier<'d>
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