Struct mpd::status::Status
[−]
[src]
pub struct Status { pub volume: i8, pub repeat: bool, pub random: bool, pub single: bool, pub consume: bool, pub queue_version: u32, pub queue_len: u32, pub state: State, pub song: Option<QueuePlace>, pub nextsong: Option<QueuePlace>, pub time: Option<(Duration, Duration)>, pub elapsed: Option<Duration>, pub duration: Option<Duration>, pub bitrate: Option<u32>, pub crossfade: Option<Duration>, pub mixrampdb: f32, pub mixrampdelay: Option<Duration>, pub audio: Option<AudioFormat>, pub updating_db: Option<u32>, pub error: Option<String>, pub replaygain: Option<ReplayGain>, }
MPD status
Fields
volume: i8
volume (0-100, or -1 if volume is unavailable (e.g. for HTTPD output type)
repeat: bool
repeat mode
random: bool
random mode
single: bool
single mode
consume: bool
consume mode
queue_version: u32
queue version number
queue_len: u32
queue length
state: State
playback state
song: Option<QueuePlace>
currently playing song place in the queue
nextsong: Option<QueuePlace>
next song to play place in the queue
time: Option<(Duration, Duration)>
time current song played, and total song duration (in seconds resolution)
elapsed: Option<Duration>
elapsed play time current song played (in milliseconds resolution)
duration: Option<Duration>
current song duration
bitrate: Option<u32>
current song bitrate, kbps
crossfade: Option<Duration>
crossfade timeout, seconds
mixrampdb: f32
mixramp threshold, dB
mixrampdelay: Option<Duration>
mixramp duration, seconds
audio: Option<AudioFormat>
current audio playback format
updating_db: Option<u32>
current DB updating job number (if DB updating is in progress)
error: Option<String>
last player error (if happened, can be reset with clearerror()
method)
replaygain: Option<ReplayGain>
replay gain mode
Trait Implementations
impl Debug for Status
[src]
impl PartialEq for Status
[src]
fn eq(&self, __arg_0: &Status) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Status) -> bool
This method tests for !=
.
impl Clone for Status
[src]
fn clone(&self) -> Status
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more