pub enum ClientCommand {
SetVolume {
volume: u16,
muted: bool,
},
SendCustom(CustomMessage),
Stop,
}Expand description
Commands the consumer sends to the client.
Variants§
SetVolume
Set volume (0–100) and mute state.
SendCustom(CustomMessage)
Send a custom message to the server.
Stop
Stop the client gracefully.
Trait Implementations§
Source§impl Clone for ClientCommand
impl Clone for ClientCommand
Source§fn clone(&self) -> ClientCommand
fn clone(&self) -> ClientCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientCommand
impl RefUnwindSafe for ClientCommand
impl Send for ClientCommand
impl Sync for ClientCommand
impl Unpin for ClientCommand
impl UnsafeUnpin for ClientCommand
impl UnwindSafe for ClientCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more