Struct hiirc::Message
[−]
[src]
pub struct Message { pub prefix: Option<Prefix>, pub code: Code, pub args: Vec<String>, }
Represents a message received from the server.
Fields
prefix: Option<Prefix>
Prefix
code: Code
Code
args: Vec<String>
Arguments
Methods
impl Message
[src]
fn parse(line: &str) -> Result<Message, ParseError>
[src]
Parse the given string into a Message
struct.
An error is returned if the message is not valid.
Trait Implementations
impl Clone for Message
[src]
fn clone(&self) -> Message
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Message
[src]
impl PartialEq<Message> for Message
[src]
fn eq(&self, __arg_0: &Message) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Message) -> bool
[src]
This method tests for !=
.