Trait Executor
pub trait Executor {
// Required methods
fn new() -> Self;
fn block_on<F>(&mut self, future: F) -> <F as Future>::Output
where F: Future;
}
Expand description
Generic executor.
Required Methods§
fn new() -> Self
fn new() -> Self
Create the implementor itself.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.