Struct pircolate::command::Pong
[−]
[src]
pub struct Pong<'a>(pub &'a str);
Represents a PONG command. The first element is the host.
Trait Implementations
impl<'a> Command<'a> for Pong<'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<Pong<'a>>
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
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