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]

Provides the name of the command to be matched. Examples include PRIVMSG or PING.

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

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