Enum irc_command_micro::command::IRCCommand
source · pub enum IRCCommand {
NONE,
NAMES,
PRIVMSG,
NICK,
RPL_WELCOME,
RPL_NAMREPLY,
RPL_ENDOFNAMES,
}
Variants§
Implementations§
source§impl IRCCommand
impl IRCCommand
pub fn command_text(&self) -> &str
pub fn parse_params( &self, raw_input: Vec<Vec<u8>>, ) -> Result<Vec<Vec<u8>>, MessageError>
Trait Implementations§
source§impl Debug for IRCCommand
impl Debug for IRCCommand
source§impl PartialEq for IRCCommand
impl PartialEq for IRCCommand
source§fn eq(&self, other: &IRCCommand) -> bool
fn eq(&self, other: &IRCCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IRCCommand
Auto Trait Implementations§
impl Freeze for IRCCommand
impl RefUnwindSafe for IRCCommand
impl Send for IRCCommand
impl Sync for IRCCommand
impl Unpin for IRCCommand
impl UnwindSafe for IRCCommand
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