Struct pircolate::command::Welcome
[−]
[src]
pub struct Welcome<'a>(pub &'a str, pub &'a str);
Represents a WELCOME numeric. The first element is the unsername and the second element is the welcome message.
Trait Implementations
impl<'a> Command<'a> for Welcome<'a>
[src]
fn name() -> &'static str
Provides the name of the command to be matched. Examples include PRIVMSG
or PING
.
fn parse(arguments: ArgumentIter<'a>) -> Option<Welcome>
This method takes in an iterator of arguments associated with a Message
and attempts to parse the arguments into a matched Command
. If no match is found, None is returned. Read more
fn try_match(command: &str, arguments: ArgumentIter<'a>) -> Option<Self> where
Self: Sized,
Self: Sized,
A default implementation that takes in the given command name and arguments and attempts to match the command and parse the arguments into a strongly typed representation. If there is no match or the parse fails, it returns None
. Read more