pub struct UnsyncWaker { /* private fields */ }
Expand description
A ![Sync
] and ![Sync
] equivalent to AtomicWaker
.
Implementations§
Source§impl UnsyncWaker
impl UnsyncWaker
Sourcepub fn register(&self, waker: &Waker)
pub fn register(&self, waker: &Waker)
Register a waker if the waker represents a different waker than is already stored.
Sourcepub fn wake(&self)
pub fn wake(&self)
If a waker has been registered, wake the contained Waker
, unregistering it at the same time.
Sourcepub fn wake_by_ref(&self)
pub fn wake_by_ref(&self)
If a waker has been registered, wake the contained Waker
, maintaining it for later use.
Trait Implementations§
Source§impl Default for UnsyncWaker
impl Default for UnsyncWaker
Source§fn default() -> UnsyncWaker
fn default() -> UnsyncWaker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for UnsyncWaker
impl !RefUnwindSafe for UnsyncWaker
impl !Send for UnsyncWaker
impl !Sync for UnsyncWaker
impl Unpin for UnsyncWaker
impl UnwindSafe for UnsyncWaker
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