pub trait Spawn {
// Required method
fn spawn<F, T>(self, f: F) -> JoinHandle<T>
where F: FnOnce() -> T + Send + 'static,
T: Send + 'static;
}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.