Struct pircolate::message::Message
[−]
[src]
pub struct Message { /* fields omitted */ }
Representation of IRC messages that splits a message into its constituent parts specified in RFC1459 and the IRCv3 spec.
Methods
impl Message
[src]
fn try_from(value: String) -> Result<Message>
Attempt to construct a new message from the given raw IRC message.
fn command<'a, T>(&'a self) -> Option<T> where T: Command<'a>
A strongly typed interface for determining the type of the command and retrieving the values of the command.
fn tag<'a, T>(&'a self) -> Option<T> where T: Tag<'a>
A strongly type way of accessing a specified tag associated with a message.
fn prefix(&self) -> Option<(&str, Option<&str>, Option<&str>)>
Retrieves the prefix for this message, if there is one. If there is either a user or host associated with the prefix, it will also return those.
Get an iterator to the raw key/value pairs of tags associated with this message.
fn raw_prefix(&self) -> Option<&str>
Attempt to get the raw prefix value associated with this message.
fn raw_command(&self) -> &str
Retrieve the raw command associated with this message.
fn raw_args(&self) -> ArgumentIter
Get an iterator to the raw arguments associated with this message.
fn raw_message(&self) -> &str
Get the raw IRC command this message was constrcuted from.
Trait Implementations
impl Clone for Message
[src]
fn clone(&self) -> Message
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Message
[src]
fn eq(&self, __arg_0: &Message) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Message) -> bool
This method tests for !=
.