pub struct Executor { /* private fields */ }Expand description
Local futures stay local. Only ids/ready bits/wakers cross threads, allowing network/timer wakers without unsafe Send wrappers around Rust UI state.
Implementations§
Source§impl Executor
impl Executor
pub fn new(limit: usize) -> Self
Sourcepub fn observe(&self, waker: &Waker)
pub fn observe(&self, waker: &Waker)
Begin a host poll turn and acknowledge its previous notification. All subsequent task/dirty wakes coalesce until the next host turn.
pub fn dirty(&self) -> bool
pub fn work(&self) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn poll_one(&self) -> bool
pub fn close(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Executor
impl !RefUnwindSafe for Executor
impl !Send for Executor
impl !Sync for Executor
impl !UnwindSafe for Executor
impl Forget for Executor
impl Unpin for Executor
impl UnsafeUnpin for Executor
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