pub enum Command {
Bye,
Open(String),
Personal(String, String),
Beep(String),
Name(String),
}
Expand description
Commands a Client
can send to the Server
through the cmd
channels.
Variants§
Bye
Terminate the connection to the remote server. ICB doesn’t have a way to perform a clean disconnect other than shutting down the socket.
Open(String)
Send a message to the group.
Personal(String, String)
Send a personal message to a user. First parameter is the username, second is the message text.
Beep(String)
Beep another user.
Name(String)
Change nickname.
Trait Implementations§
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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