pub(crate) struct ThreadNotify {
thread: Thread,
unparked: AtomicBool,
}
Fields§
§thread: Thread
The (single) executor thread.
unparked: AtomicBool
A flag to ensure a wakeup (i.e. unpark()
) is not “forgotten”
before the next park()
, which may otherwise happen if the code
being executed as part of the future(s) being polled makes use of
park / unpark calls of its own, i.e. we cannot assume that no other
code uses park / unpark on the executing thread
.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ThreadNotify
impl RefUnwindSafe for ThreadNotify
impl Send for ThreadNotify
impl Sync for ThreadNotify
impl Unpin for ThreadNotify
impl UnwindSafe for ThreadNotify
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