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 (0-100, or -1 if volume is unavailable (e.g. for HTTPD output type)

repeat mode

random mode

single mode

consume mode

queue version number

queue length

playback state

currently playing song place in the queue

next song to play place in the queue

time current song played, and total song duration (in seconds resolution)

elapsed play time current song played (in milliseconds resolution)

current song duration

current song bitrate, kbps

crossfade timeout, seconds

mixramp threshold, dB

mixramp duration, seconds

current audio playback format

current DB updating job number (if DB updating is in progress)

last player error (if happened, can be reset with clearerror() method)

replay gain mode

Trait Implementations

impl Debug for Status
[src]

Formats the value using the given formatter.

impl PartialEq for Status
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Status
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Status
[src]

Returns the "default value" for a type. Read more

impl Encodable for Status
[src]

Serialize a value using an Encoder.