Module command

Source
Expand description

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.
CommandError
Error returned when attempting to create invalid commands or arguments.
CommandList
A non-empty list of commands.

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.