pub trait CanSpawnTask: Async {
// Required method
fn spawn_task<T>(&self, task: T)
where T: Task;
}Required Methods§
fn spawn_task<T>(&self, task: T)where
T: Task,
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.