Struct spotify::status::SpotifyStatus
[−]
[src]
pub struct SpotifyStatus { /* fields omitted */ }
A Spotify status.
Methods
impl SpotifyStatus
[src]
Implements SpotifyStatus
.
fn track(&self) -> SimpleTrack
Gets an easy-to-work-with abstraction over the currently playing track, containing only the names of the track, album and artist.
fn version(&self) -> String
Gets the client version.
fn volume(&self) -> f32
Gets the volume.
Possible values range from 0.0_f32
to 1.0_f32
.
fn volume_percentage(&self) -> f32
Gets the volume as percentage.
Possible values range from 0.0_f32
to 100.0_f32
.
fn timestamp(&self) -> i64
Gets the server timestamp.
fn time(&self) -> Tm
Gets the local server time.
fn time_utc(&self) -> Tm
Gets the coordinated universal server time.
fn shuffle_enabled(&self) -> bool
Gets a value indicating whether shuffling is enabled.
fn is_online(&self) -> bool
Gets a value indicating whether the client is currently connected to the Internet.
fn is_private_session(&self) -> bool
Gets a value indicating whether the current session is a private session.
Trait Implementations
impl Debug for SpotifyStatus
[src]
impl Clone for SpotifyStatus
[src]
fn clone(&self) -> SpotifyStatus
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
impl PartialEq for SpotifyStatus
[src]
fn eq(&self, __arg_0: &SpotifyStatus) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SpotifyStatus) -> bool
This method tests for !=
.
impl From<JsonValue> for SpotifyStatus
[src]
Implements From<JsonValue>
for SpotifyStatus
.
fn from(json: JsonValue) -> SpotifyStatus
Performs the conversion.