pub enum ServerCommand {
SetClientVolume {
client_id: String,
volume: u16,
muted: bool,
},
SetClientLatency {
client_id: String,
latency: i32,
},
SetClientName {
client_id: String,
name: String,
},
SetGroupStream {
group_id: String,
stream_id: String,
},
SetGroupMute {
group_id: String,
muted: bool,
},
SetGroupName {
group_id: String,
name: String,
},
SetGroupClients {
group_id: String,
clients: Vec<String>,
},
DeleteClient {
client_id: String,
},
GetStatus {
response_tx: Sender<Value>,
},
Stop,
}Expand description
Commands the consumer sends to the server.
Variants§
SetClientVolume
Set a client’s volume.
SetClientLatency
Set a client’s latency offset.
SetClientName
Set a client’s display name.
SetGroupStream
Assign a stream to a group.
SetGroupMute
Mute/unmute a group.
SetGroupName
Set a group’s display name.
SetGroupClients
Move clients to a group.
DeleteClient
Delete a client from the server.
GetStatus
Get full server status.
Stop
Stop the server gracefully.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerCommand
impl !RefUnwindSafe for ServerCommand
impl Send for ServerCommand
impl Sync for ServerCommand
impl Unpin for ServerCommand
impl UnsafeUnpin for ServerCommand
impl !UnwindSafe for ServerCommand
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