pub struct WakerRegistration { /* private fields */ }Expand description
Utility struct to register and wake a waker. If a waker is registered, registering another waker will replace the previous one. The previous waker will be woken in this case, giving it a chance to reregister itself. Although it is possible to wake multiple tasks this way, this will cause them to wake each other in a loop registering themselves.
Implementations§
Trait Implementations§
Source§impl Debug for WakerRegistration
impl Debug for WakerRegistration
Auto Trait Implementations§
impl Forget for WakerRegistration
impl Freeze for WakerRegistration
impl Move for WakerRegistration
impl RefUnwindSafe for WakerRegistration
impl Send for WakerRegistration
impl Sync for WakerRegistration
impl Unpin for WakerRegistration
impl UnsafeUnpin for WakerRegistration
impl UnwindSafe for WakerRegistration
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