From ea77a8cf9c012fcd877d842fec85b0b5a442952c Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Sun, 7 Aug 2022 20:47:54 -0400 Subject: Import modifications to `mpd` crate --- vendored/mpd/src/lib.rs | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 vendored/mpd/src/lib.rs (limited to 'vendored/mpd/src/lib.rs') diff --git a/vendored/mpd/src/lib.rs b/vendored/mpd/src/lib.rs new file mode 100644 index 0000000..ccc9c01 --- /dev/null +++ b/vendored/mpd/src/lib.rs @@ -0,0 +1,66 @@ +#![warn(missing_docs)] + +//! MPD client for Rust +//! +//! This crate tries to provide idiomatic Rust API for [Music Player Daemon][mpd]. +//! The main entry point to the API is [`Client`](client/struct.Client.html) struct, +//! and inherent methods of the struct follow [MPD protocol][proto] for most part, +//! making use of traits to overload different parameters for convenience. +//! +//! [mpd]: http://www.musicpd.org/ +//! [proto]: http://www.musicpd.org/doc/protocol/ +//! +//! # Usage +//! +//! ```text +//! [dependencies] +//! mpd = "*" +//! ``` +//! +//! ```rust,no_run +//! extern crate mpd; +//! +//! use mpd::Client; +//! use std::net::TcpStream; +//! +//! # fn main() { +//! 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()); +//! # } +//! ``` + +mod macros; +mod convert; +pub mod error; +pub mod version; +pub mod reply; +pub mod status; +pub mod song; +pub mod output; +pub mod playlist; +pub mod plugin; +pub mod stats; +pub mod search; +pub mod message; +pub mod idle; +pub mod mount; +mod sticker; + +mod proto; +pub mod client; + +pub use client::Client; +pub use idle::{Idle, Subsystem}; +pub use message::{Channel, Message}; +pub use mount::{Mount, Neighbor}; +pub use output::Output; +pub use playlist::Playlist; +pub use plugin::Plugin; +pub use search::{Query, Term}; +pub use song::{Id, Song}; +pub use stats::Stats; +pub use status::{ReplayGain, State, Status}; +pub use version::Version; -- cgit v1.3