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

Prefix

code

Code

args

Arguments

Methods

impl Message

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

Derived Implementations

impl PartialEq for Message

fn eq(&self, __arg_0: &Message) -> bool

fn ne(&self, __arg_0: &Message) -> bool

impl Eq for Message

impl Debug for Message

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Message

fn clone(&self) -> Message

1.0.0fn clone_from(&mut self, source: &Self)