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§
Source§impl Clone for ServerCommand
impl Clone for ServerCommand
Source§fn clone(&self) -> ServerCommand
fn clone(&self) -> ServerCommand
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 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