pub trait EventHandler: Send + Sync {
    // Required method
    fn on_event(&self) -> Result<()>;
}
Expand description

Interface for event handler.

Required Methods§

source

fn on_event(&self) -> Result<()>

Implementors§