Trait silkenweb::signal::SignalReceiver [−][src]
pub trait SignalReceiver<Input, Output>: 'static where
Input: 'static,
Output: 'static, { pub fn receive(&self, x: &Input) -> Output; }
Receive changes to a signal.
Pass a SignalReceiver
to ReadSignal::map_to
, as an alternative to
passing a closure to ReadSignal::map
.
Required methods
Loading content...Implementors
impl<Input, Output, F> SignalReceiver<Input, Output> for F where
Input: 'static,
Output: 'static,
F: 'static + Fn(&Input) -> Output,
[src]
impl<Input, Output, F> SignalReceiver<Input, Output> for F where
Input: 'static,
Output: 'static,
F: 'static + Fn(&Input) -> Output,
[src]impl<T> SignalReceiver<T, SumHandle> for SumElement<T> where
T: 'static + Clone + Zero + WrappingAdd + WrappingSub,
[src]
impl<T> SignalReceiver<T, SumHandle> for SumElement<T> where
T: 'static + Clone + Zero + WrappingAdd + WrappingSub,
[src]