Trait Handler

Source
pub trait Handler: Send + Sync {
    // Required method
    fn emit(&self, message: &Message);
}
Expand description

Handels an emitted message.

Required Methods§

Source

fn emit(&self, message: &Message)

Actually do something with the message.

Implementors§