pub struct Waiter { /* private fields */ }Expand description
Handle passed to poll functions for registering with WaiterLists
Implementations§
Source§impl Waiter
impl Waiter
Sourcepub fn noop() -> Self
pub fn noop() -> Self
Create a no-op waiter that discards registrations.
Registrations are stored as Weak<Waker> refs, so a noop waiter’s
weak ref will just be cleaned up on the next register call.
Sourcepub fn register(&self, list: &mut WaiterList)
pub fn register(&self, list: &mut WaiterList)
Register this waiter with a WaiterList for future notification.
Auto Trait Implementations§
impl Freeze for Waiter
impl RefUnwindSafe for Waiter
impl Send for Waiter
impl Sync for Waiter
impl Unpin for Waiter
impl UnsafeUnpin for Waiter
impl UnwindSafe for Waiter
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