teamtalk 6.0.0

TeamTalk SDK for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::client::{Client, Message};
use crate::events::Event;
use crate::types::{ChannelId, TextMessage, User};

pub type EventHook = Box<dyn FnMut(&Client, Event, &Message) + Send>;
pub type ClientHook = Box<dyn FnMut(&Client) + Send>;
pub type ChannelHook = Box<dyn FnMut(&Client, ChannelId) + Send>;
pub type UserHook = Box<dyn FnMut(&Client, User) + Send>;
pub type TextHook = Box<dyn FnMut(&Client, TextMessage) + Send>;
pub type MessageHook = Box<dyn FnMut(&Client, &Message) + Send>;