From 7077fee8eef19caeec624448162eb3667b926c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sat, 28 Nov 2020 02:34:51 +0100 Subject: sort mumlib commands --- mumlib/src/command.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'mumlib/src') diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index 2e824fc..8c54b20 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -9,9 +9,11 @@ pub enum Command { }, ChannelList, ConfigReload, + DeafenSelf(Option), InputVolumeSet(f32), + MuteOther(String, Option), + MuteSelf(Option), OutputVolumeSet(f32), - UserVolumeSet(String, f32), ServerConnect { host: String, port: u16, @@ -19,14 +21,12 @@ pub enum Command { accept_invalid_cert: bool, }, ServerDisconnect, - Status, ServerStatus { host: String, port: u16, }, - DeafenSelf(Option), - MuteSelf(Option), - MuteOther(String, Option), + Status, + UserVolumeSet(String, f32), } #[derive(Debug, Deserialize, Serialize)] @@ -34,22 +34,22 @@ pub enum CommandResponse { ChannelList { channels: Channel, }, + DeafenStatus { + is_deafened: bool, + }, + MuteStatus { + is_muted: bool, + }, ServerConnect { welcome_message: Option, }, - 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, }, } -- cgit v1.2.1