pub trait SignalReceiver<Input, Output>: 'staticwhere
Input: 'static,
Output: 'static,{
// Required method
fn receive(&self, x: &Input) -> Output;
}
Expand description
Receive changes to a signal.
Pass a SignalReceiver
to ReadSignal::map_to
, as an alternative to
passing a closure to ReadSignal::map
.