Struct mpd_client::responses::Status
source · #[non_exhaustive]pub struct Status {Show 17 fields
pub volume: u8,
pub state: PlayState,
pub repeat: bool,
pub random: bool,
pub consume: bool,
pub single: SingleMode,
pub playlist_version: u32,
pub playlist_length: usize,
pub current_song: Option<(SongPosition, SongId)>,
pub next_song: Option<(SongPosition, SongId)>,
pub elapsed: Option<Duration>,
pub duration: Option<Duration>,
pub bitrate: Option<u64>,
pub crossfade: Duration,
pub update_job: Option<u64>,
pub error: Option<String>,
pub partition: Option<String>,
}Expand description
Response to the status command.
See the MPD documentation for the specific meanings of the fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.volume: u8§state: PlayState§repeat: bool§random: bool§consume: bool§single: SingleMode§playlist_version: u32§playlist_length: usize§current_song: Option<(SongPosition, SongId)>§next_song: Option<(SongPosition, SongId)>§elapsed: Option<Duration>§duration: Option<Duration>§bitrate: Option<u64>§crossfade: Duration§update_job: Option<u64>§error: Option<String>§partition: Option<String>Trait Implementations§
source§impl PartialEq for Status
impl PartialEq for Status
impl Eq for Status
impl StructuralEq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more