pub enum ServerCommand {
BroadcastParam {
name: String,
value: f32,
},
BroadcastVisualization {
data: Vec<f32>,
},
CreateRoom {
response: Sender<String>,
},
CloseRoom {
code: String,
},
Shutdown,
}Expand description
Commands from main thread to server.
Variants§
BroadcastParam
Broadcast a parameter update to all connected clients.
BroadcastVisualization
Broadcast visualization data to all clients.
CreateRoom
Create a new room and return its code via the response channel.
CloseRoom
Close a room.
Shutdown
Shutdown the server.
Auto Trait Implementations§
impl Freeze for ServerCommand
impl !RefUnwindSafe for ServerCommand
impl Send for ServerCommand
impl Sync for ServerCommand
impl Unpin 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