pub trait EventProducer {
    // Required method
    fn set_dispatcher(&mut self, dispatcher: Dispatcher);
}
Expand description

Trait implemented by data types which emit events.

Required Methods§

source

fn set_dispatcher(&mut self, dispatcher: Dispatcher)

Whent registered, event producers will receive a call on this method with the dispatcher they can use to emit events.

Implementors§