Trait Spawnable
pub trait Spawnable {
type Spawner;
// Required method
fn spawner() -> Self::Spawner;
}Expand description
A Worker that can be spawned by a spawner.
Required Associated Types§
type Spawner
type Spawner
Spawner Type.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".