mpd 0.1.0

A client library for MPD (music player daemon), like libmpdclient but in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate mpd;

mod helpers;
use helpers::connect;

#[test]
/// Creating a sticker and then getting that sticker returns the value that was set.
fn set_sticker() {
    let mut mpd = connect();

    static VALUE: &'static str = "value";

    mpd.set_sticker("song", "empty.flac", "test_sticker", VALUE).unwrap();

    let sticker = mpd.sticker("song", "empty.flac", "test_sticker").unwrap();
    assert_eq!(sticker, VALUE);
}