pub trait Executor { // Required methods fn new() -> Self; fn block_on<F: Future>(&mut self, future: F) -> F::Output; }
Generic executor.
Create the implementor itself.
Spawns a future object to run synchronously or asynchronously depending on the specific executor.