Types

EventHandler

Trait used to emit the server events

Asynchronous

#[async_trait]
trait EventHandler: Send + Sync + 'static {
    ///Event triggered every 5 minutes if there is any ban update
    async fn ban_updated(&self, _data: Vec<BanUpdate>) {}
}

Blocking

trait EventHandler: Send + Sync + 'static {
    ///Event triggered every 5 minutes if there is any ban update
    fn ban_updated(&self, _data: Vec<BanUpdate>) {}
}

Last updated