pub enum ServerCommand {
Message(Option<String>, String),
Identify(String),
Terminate,
}
Variants§
Message(Option<String>, String)
Send message to give target.
Identify(String)
Send identifier
Terminate
Terminate server.
Trait Implementations§
Source§impl Clone for ServerCommand
impl Clone for ServerCommand
Source§fn clone(&self) -> ServerCommand
fn clone(&self) -> ServerCommand
Returns a copy 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 moreSource§impl Debug for ServerCommand
impl Debug for ServerCommand
Source§impl PartialEq for ServerCommand
impl PartialEq for ServerCommand
impl Eq for ServerCommand
impl StructuralPartialEq for ServerCommand
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