mpd

Crates.iompd
lib.rsmpd
version0.1.0
sourcesrc
created_at2015-01-10 12:22:52.784558
updated_at2023-07-09 13:06:52.20989
descriptionA client library for MPD (music player daemon), like libmpdclient but in Rust
homepagehttps://github.com/kstep/rust-mpd
repositoryhttps://github.com/kstep/rust-mpd.git
max_upload_size
id755
size131,206
Konstantin Stepanov (kstep)

documentation

http://kstep.me/rust-mpd/mpd/index.html

README

rust-mpd <a href=http://docs.rs/mpd/>

Pure Rust version of libmpdclient.

Full documentation

Example

Add to Cargo.toml:

[dependencies]
mpd = "*"

Then just use:

extern crate mpd;

use mpd::Client;

let mut conn = Client::connect("127.0.0.1:6600").unwrap();
conn.volume(100).unwrap();
conn.load("My Lounge Playlist", ..).unwrap();
conn.play().unwrap();
println!("Status: {:?}", conn.status());

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 341

cargo fmt