pub struct Waker { /* private fields */ }Implementations§
Source§impl Waker
impl Waker
Sourcepub exec fn wake_up(&self) -> bool
pub exec fn wake_up(&self) -> bool
Wakes up the associated Waiter.
This method returns true if the waiter is woken by this call. It returns false if the
waiter has already been woken by a previous call to the method, or if the waiter has been
dropped.
Note that if this method returns true, it implies that the wake event will be properly
delivered, or that the waiter will be dropped after being woken. It’s up to the caller to
handle the latter case properly to avoid missing the wake event.
Auto Trait Implementations§
impl !Freeze for Waker
impl RefUnwindSafe for Waker
impl Send for Waker
impl Sync for Waker
impl Unpin for Waker
impl UnsafeUnpin for Waker
impl UnwindSafe for Waker
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