pub trait Executor: Clone + Sync + Send + 'static {
// Required methods
fn spawn<F>(&self, future: F)
where F: Future + Send + 'static;
fn run_until_ctrl_c(&self);
}
Required Methods§
fn spawn<F>(&self, future: F)
fn run_until_ctrl_c(&self)
Object Safety§
This trait is not object safe.