Struct loirc::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>
Parse the given string into a Message
struct.
An error is returned if the message is not valid.
Trait Implementations
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 !=
.
impl Eq for Message
[src]
impl Debug for Message
[src]
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