Skip to main content

Executor

Trait Executor 

Source
pub trait Executor<Fut> {
    // Required method
    fn execute(&self, fut: Fut);
}
Expand description

An executor of futures.

Required Methods§

Source

fn execute(&self, fut: Fut)

Place the future into the executor to be run.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§