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.