-
Rust-mpd是一个Rust实现的libmpdclient库
资源介绍
锈-mpd
纯Rust版本。
例子
添加到Cargo.toml :
[ dependencies ]
mpd = " * "
然后只需使用:
extern crate mpd;
use mpd :: Client;
use std :: net :: TcpStream;
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 ());
执照
根据以下任一许可
Apache许可证2.0版( 或 )
MIT