Trait signals::Emitter
[−]
[src]
pub trait Emitter: Send { type input; fn emit_arc(&mut self, _: Arc<Self::input>); fn emit(&mut self, _: Self::input); }
This is a polymorphic trait allowing multiple generic signals to be stored in a list.
Associated Types
type input
Required Methods
fn emit_arc(&mut self, _: Arc<Self::input>)
When dealing with multithreaded Emitters, we want Arc capability
fn emit(&mut self, _: Self::input)
This is syntax sugar used as a emit_arc(...) wrapper