pub trait SignalSpawn<A> {
// Required methods
fn spawn_local<F>(self, f: F)
where F: Fn(A) + 'static;
fn spawn_local_fut<F, W>(self, f: F)
where F: Fn(A) -> W + 'static,
W: Future<Output = ()> + 'static;
}Required Methods§
fn spawn_local<F>(self, f: F)where
F: Fn(A) + 'static,
fn spawn_local_fut<F, W>(self, f: F)
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.