pub struct Executor<I, F> { /* private fields */ }Available on crate feature
executor only.Expand description
Task executor for a single 'static future.
This provides a polling interface for a Future running on an interrupt handler.
If the provided Waker is woken, the executor will pend the provided interrupt with Interrupt::pend.
Executors must be static for use with the waker and Pin support.
use async_hal::Executor;
static mut EXECUTOR: Executor<(), ()> = Executor::new(());Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<I, F> !Freeze for Executor<I, F>
impl<I, F> !RefUnwindSafe for Executor<I, F>
impl<I, F> Send for Executor<I, F>
impl<I, F> !Sync for Executor<I, F>
impl<I, F> Unpin for Executor<I, F>
impl<I, F> UnwindSafe for Executor<I, F>where
I: UnwindSafe,
F: UnwindSafe,
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