pub trait Executor<Fut> {
// Required method
fn execute(&self, fut: Fut);
}Expand description
An executor of futures.
This trait allows abstract over async runtimes. Implement this trait for your own type.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".