archivist_lib::events::router

Trait EventProducer

Source
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§