Struct sunk::JukeboxStatus

source ·
pub struct JukeboxStatus {
    pub index: isize,
    pub playing: bool,
    pub volume: f32,
    pub position: usize,
}
Expand description

A representation of the jukebox’s current status.

Fields

index: isize

Current index in the playlist (zero-indexed). -1 means that the jukebox has had its playlist cleared and has not since been played.

playing: bool

Whether or not the jukebox is currently active.

volume: f32

Volume level of the jukebox, from 0 to 1.0.

position: usize

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.