pub trait Spawner {
// Required method
fn spawn<F>(&mut self, fut: F)
where F: Future<Output = ()> + Send + 'static;
}Expand description
An Spawner represents anything that can spawn a future to be run in the background. This is
used to spawn actors.
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.