[][src]Struct macos_spotify::Spotify

pub struct Spotify { /* fields omitted */ }

Methods

impl Spotify[src]

pub fn new() -> Spotify[src]

pub fn play_pause(&self) -> Result<()>[src]

pub fn play(&self) -> Result<()>[src]

pub fn pause(&self) -> Result<()>[src]

pub fn next(&self) -> Result<()>[src]

pub fn previous(&self) -> Result<()>[src]

pub fn prev(&self) -> Result<()>[src]

pub fn state(&self) -> Result<Option<State>>[src]

pub fn is_shuffling(&self) -> Result<Option<bool>>[src]

pub fn set_shuffling(&self, is_it: bool) -> Result<()>[src]

pub fn is_repeating(&self) -> Result<Option<bool>>[src]

pub fn set_repeating(&self, is_it: bool) -> Result<()>[src]

pub fn position(&self) -> Result<Option<f64>>[src]

pub fn set_position(&self, pos: f64) -> Result<()>[src]

pub fn set_pos(&self, pos: f64) -> Result<()>[src]

pub fn pos(&self) -> Result<Option<f64>>[src]

pub fn volume(&self) -> Result<Option<i32>>[src]

pub fn set_volume(&self, vol: i32) -> Result<()>[src]

pub fn track(&self) -> Result<Option<SpotifyTrack>>[src]

pub fn play_track(&self, track: String, context: Option<String>) -> Result<()>[src]

Auto Trait Implementations

impl !Send for Spotify

impl !Sync for Spotify

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]