rustirc 0.1.0

A fully async IRC library and protocol implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use async_trait::async_trait;
use super::client::Client;
use super::message_parser::Message;

#[async_trait]
pub trait EventHandler: Send + Sync {
    async fn on_message_sent(&self, _client: &mut Client, _params: Message) {}
    async fn on_server_connect(&self, _client: &mut Client, _params: Message) {}
    async fn on_channel_join(&self, _client: &mut Client, _params: Message) {}
    async fn on_message_of_the_day(&self, _client: &mut Client, _params: Message) {}
    async fn on_unimplemented(&self, _client: &mut Client, _params: Message) {}
}