diff options
Diffstat (limited to 'mumlib/src/command.rs')
| -rw-r--r-- | mumlib/src/command.rs | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index 2e824fc..73a065d 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -9,9 +9,12 @@ pub enum Command { }, ChannelList, ConfigReload, + DeafenSelf(Option<bool>), InputVolumeSet(f32), + MuteOther(String, Option<bool>), + MuteSelf(Option<bool>), OutputVolumeSet(f32), - UserVolumeSet(String, f32), + Ping, ServerConnect { host: String, port: u16, @@ -19,14 +22,12 @@ pub enum Command { accept_invalid_cert: bool, }, ServerDisconnect, - Status, ServerStatus { host: String, port: u16, }, - DeafenSelf(Option<bool>), - MuteSelf(Option<bool>), - MuteOther(String, Option<bool>), + Status, + UserVolumeSet(String, f32), } #[derive(Debug, Deserialize, Serialize)] @@ -34,22 +35,23 @@ pub enum CommandResponse { ChannelList { channels: Channel, }, + DeafenStatus { + is_deafened: bool, + }, + MuteStatus { + is_muted: bool, + }, + Pong, ServerConnect { welcome_message: Option<String>, }, - Status { - server_state: Server, - }, ServerStatus { version: u32, users: u32, max_users: u32, bandwidth: u32, }, - MuteStatus { - is_muted: bool, - }, - DeafenStatus { - is_deafened: bool, + Status { + server_state: Server, }, } |
