Struct mpd::client::Client [] [src]

pub struct Client<S = TcpStream> where S: Read + Write {
    pub version: Version,
    // some fields omitted
}

Client connection

Fields

MPD version

Methods

impl Client<TcpStream>
[src]

Connect client to some IP address

impl<S: Read + Write> Client<S>
[src]

Create client from some arbitrary pre-connected socket

Get MPD status

Get MPD playing statistics

Clear error state

Set volume

Set repeat state

Set random state

Set single state

Set consume state

Set crossfade time in seconds

Set mixramp level in dB

Set mixramp delay in seconds

Set replay gain mode

Start playback

Start playback from given song in a queue

Switch to a next song in queue

Switch to a previous song in queue

Stop playback

Set pause state

Seek to a given place (in seconds) in a given song

Seek to a given place (in seconds) in the current song

List given song or range of songs in a play queue

List all songs in a play queue

Get current playing song

Clear current queue

List all changes in a queue since given version

Append a song into a queue

Insert a song into a given position in a queue

Delete a song (at some position) or several songs (in a range) from a queue

Move a song (at a some position) or several songs (in a range) to other position in queue

Swap to songs in a queue

Shuffle queue in a given range (use .. to shuffle full queue)

Set song priority in a queue

Set song range (in seconds) to play

Doesn't work for currently playing song.

Add tag to a song

Delete tag from a song

Just pings MPD server, does nothing

Close MPD connection

Kill MPD server

Login to MPD server with given password

List all playlists

List all songs in a playlist

Load playlist into queue

You can give either full range (..) to load all songs in a playlist, or some partial range to load only part of playlist.

Save current queue into playlist

If playlist with given name doesn't exist, create new one.

Rename playlist

Clear playlist

Delete playlist

Add new songs to a playlist

Delete a song at a given position in a playlist

Move song in a playlist from one position into another

Run database rescan, i.e. remove non-existing files from DB as well as add new files to DB

Run database update, i.e. remove non-existing files from DB

Find songs matching Query conditions.

Case-insensitively search for songs matching Query conditions.

List all outputs

Set given output enabled state

Disable given output

Enable given output

Toggle given output

Get current music directory

List all available commands

List all forbidden commands

List all available URL handlers

List all supported tag types

List all available decoder plugins

List all channels available for current connection

Read queued messages from subscribed channels

Send a message to a channel

Subscribe to a channel

Unsubscribe to a channel

List all (virtual) mounts

These mounts exist inside MPD process only, thus they can work without root permissions.

List all network neighbors, which can be potentially mounted

Mount given neighbor to a mount point

The mount exists inside MPD process only, thus it can work without root permissions.

Unmount given active (virtual) mount

The mount exists inside MPD process only, thus it can work without root permissions.

Show sticker value for a given object, identified by type and uri

Set sticker value for a given object, identified by type and uri

Delete sticker from a given object, identified by type and uri

Remove all stickers from a given object, identified by type and uri

List all stickers from a given object, identified by type and uri

List all (file, sticker) pairs for sticker name and objects of given type from given directory (identified by uri)

List all files of a given type under given directory (identified by uri) with a tag set to given value

Trait Implementations

impl<S: Read + Write> Idle for Client<S>
[src]

Stream type of a client

Start listening for events from a set of subsystems Read more

Wait for events from a set of subsystems and return list of affected subsystems Read more

impl<S: Debug> Debug for Client<S> where S: Read + Write
[src]

Formats the value using the given formatter.

impl Default for Client<TcpStream>
[src]

Returns the "default value" for a type. Read more