pub enum ServerCommand {
Shutdown,
CloseSession(u64),
Broadcast(Vec<u8>),
}Expand description
Commands that can be sent to the server.
Variants§
Shutdown
Shutdown the server.
CloseSession(u64)
Close a specific session.
Broadcast(Vec<u8>)
Broadcast a message to all sessions.
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