Trait fetsig::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,

Object Safety§

This trait is not object safe.

Implementors§

source§

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