Executor

Trait Executor 

Source
pub trait Executor {
    // Required method
    fn execute<Fut>(&self, fut: Fut)
       where Fut: Future<Output = ()> + Send + 'static;
}

Required Methods§

Source

fn execute<Fut>(&self, fut: Fut)
where Fut: Future<Output = ()> + Send + 'static,

Place the future into the executor to be run.

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.

Implementors§