[−][src]Struct macos_spotify::Spotify
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
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,