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
Source§impl Default for WakerRegistration
impl Default for WakerRegistration
Source§fn default() -> WakerRegistration
fn default() -> WakerRegistration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WakerRegistration
impl RefUnwindSafe for WakerRegistration
impl Send for WakerRegistration
impl Sync for WakerRegistration
impl Unpin 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