pub trait TaskSpawner: Send + Clone {
// Required method
fn spawn_main<F>(&self, name: &str, fut: F)
where F: 'static + Send + Future<Output = ()>;
}
Required Methods§
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.