pub trait WireSpawn: 'static {
// Required method
fn spawn(&mut self, fut: impl Future<Output = ()> + Send + 'static);
}
Expand description
Wire Spawn Interface
Should be suitable for spawning a task in the host executor.
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.