Expand description
The command module contains everything needed to perform strongly typed access to commands associated with a message.
Structs§
- Argument
Iter - An implementation of Iterator that iterates over the arguments of a
Message
. - Created
- Represents a CREATED numeric. The first element is the unsername and the second element is the created message.
- EndNames
Reply - Names
Reply - Ping
- Represents a PING command. The first element is the host.
- Pong
- Represents a PONG command. The first element is the host.
- PrivMsg
- Represents a PRIVMSG command. The first element is the target of the message and the second eleement is the message.
- Server
Info - Represents a MYINFO numeric. The first element is the username and the second element is the server info message.
- Welcome
- Represents a WELCOME numeric. The first element is the unsername and the second element is the welcome message.
- Your
Host - Represents a YOURHOST numeric. The first element is the unsername and the second element is the yourhost message.
Enums§
Traits§
- Command
- The
Command
trait is a trait that’s implemented by types wishing to provide command parsing capability for usage with theMessage::command
method.