pub trait LocalTaskSpawner {
// Required method
fn spawn_local<F>(&self, fut: F) -> LocalTaskHandle<F::Output>
where F: Future + 'static,
F::Output: Send + 'static;
}Expand description
Spawn a local (not Send) future.
Required Methods§
fn spawn_local<F>(&self, fut: F) -> LocalTaskHandle<F::Output>
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.