Trait SignalSpawn

Source
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§

Source

fn spawn_local<F>(self, f: F)
where F: Fn(A) + 'static,

Source

fn spawn_local_fut<F, W>(self, f: F)
where F: Fn(A) -> W + 'static, W: Future<Output = ()> + 'static,

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.

Implementors§

Source§

impl<A, S> SignalSpawn<A> for S
where S: Signal<Item = A> + 'static,