Struct mpdpopm::clients::CurrentSong [−][src]
Expand description
A description of the current track, suitable for our purposes (as in, it only tracks the attributes needed for this module’s functionality).
Fields
songid: u64
Identifier, unique within the play queue, identifying this particular track; if the same file is listed twice in the `mpd’ play queue each instance will get a distinct songid
file: PathBuf
Path, relative to `mpd’ music directory root of this track
elapsed: f64
Elapsed time, in seconds, in this track
duration: f64
Total track duration, in seconds
Implementations
Compute the ratio of the track that has elapsed, expressed as a floating point between 0 & 1
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CurrentSong
impl Send for CurrentSong
impl Sync for CurrentSong
impl Unpin for CurrentSong
impl UnwindSafe for CurrentSong
Blanket Implementations
Mutably borrows from an owned value. Read more