[][src]Module mpd_protocol::command

Tools for constructing MPD commands.

For an overview of available commands, see the MPD documentation.

This does not perform any validations on commands beyond checking they appear well-formed, so it should not be tied to any particular protocol version.

Structs

Command

A single command, possibly including arguments.

CommandList

A non-empty list of commands.

Enums

CommandError

Error returned when attempting to construct an invalid command.

Traits

Argument

Things which can be used as arguments for commands.

Functions

escape_argument

Escape a single argument, prefixing necessary characters (quotes and backslashes) with backslashes.