EventHandler

Trait EventHandler 

Source
pub trait EventHandler: Send + Sync {
    // Required method
    fn handle(&self, msg: &BiliMessage, context: &EventContext);
}
Expand description

Trait for event handlers (plugins) that process BiliMessage.

Required Methods§

Source

fn handle(&self, msg: &BiliMessage, context: &EventContext)

Implementors§