diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-11-28 02:34:51 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-11-28 02:34:51 +0100 |
| commit | 7077fee8eef19caeec624448162eb3667b926c4c (patch) | |
| tree | 6bb56da78470b7d9ead9f7753517b672a81ed6a3 /mumlib | |
| parent | 790fdc02d071d0f110eff1b17374f315a1516fb7 (diff) | |
| download | mum-7077fee8eef19caeec624448162eb3667b926c4c.tar.gz | |
sort mumlib commands
Diffstat (limited to 'mumlib')
| -rw-r--r-- | mumlib/src/command.rs | 26 |
1 files changed, 13 insertions, 13 deletions
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<bool>), InputVolumeSet(f32), + MuteOther(String, Option<bool>), + MuteSelf(Option<bool>), 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<bool>), - MuteSelf(Option<bool>), - MuteOther(String, Option<bool>), + 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<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, }, } |
