diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-06-08 09:46:59 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-06-08 09:46:59 +0200 |
| commit | 2aafe6967e38851d56f747cb3e615da7e9fa9bf1 (patch) | |
| tree | a83a32df551fd0b0ede161401cb30deab9fe7c88 /mumlib/src/command.rs | |
| parent | f22d3847a23484122fad83b22d7ca48316c9d7cd (diff) | |
| download | mum-2aafe6967e38851d56f747cb3e615da7e9fa9bf1.tar.gz | |
doc
Diffstat (limited to 'mumlib/src/command.rs')
| -rw-r--r-- | mumlib/src/command.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index 818fd70..fff921a 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -4,6 +4,7 @@ use chrono::NaiveDateTime; use serde::{Deserialize, Serialize}; use std::fmt; +/// Something that happened in our channel at a point in time. #[derive(Debug, Clone, Serialize, Deserialize)] pub struct MumbleEvent { pub timestamp: NaiveDateTime, @@ -16,12 +17,12 @@ impl fmt::Display for MumbleEvent { } } +/// The different kinds of events that can happen. #[derive(Debug, Clone, Serialize, Deserialize)] pub enum MumbleEventKind { UserConnected(String, Option<String>), UserDisconnected(String, Option<String>), - /// This logic is kinda weird so we only store the rendered message. - UserMuteStateChanged(String), + UserMuteStateChanged(String), // This logic is kinda weird so we only store the rendered message. TextMessageReceived(String), UserJoinedChannel(String, String), UserLeftChannel(String, String), |
