[][src]Module mpd_protocol::parser

nom-based parsers for MPD responses.

Feature support

The parser supports binary fields as the last field in a given message, and command lists if they were initiated with the command_list_ok_begin command.

If the command list was initiated with the regular command_list_begin command, the individual responses are not separated from each other, which causes the responses to be treated as a single large one, resulting in an error if any but the last response in the list contain binary fields.

Structs

Greeting

Initial message sent by MPD on connect.

Enums

Response

Complete response, either succesful or an error. Succesful responses may be empty.

Functions

greeting

Parse a Greeting line.

response

Parse a complete response, resulting in one or more frames if succesful.