pub struct Spotify { /* private fields */ }
Implementations§
Source§impl Spotify
impl Spotify
pub fn new() -> Spotify
pub fn play_pause(&self) -> Result<()>
pub fn play(&self) -> Result<()>
pub fn pause(&self) -> Result<()>
pub fn next(&self) -> Result<()>
pub fn previous(&self) -> Result<()>
pub fn prev(&self) -> Result<()>
pub fn state(&self) -> Result<Option<State>>
pub fn is_shuffling(&self) -> Result<Option<bool>>
pub fn set_shuffling(&self, is_it: bool) -> Result<()>
pub fn is_repeating(&self) -> Result<Option<bool>>
pub fn set_repeating(&self, is_it: bool) -> Result<()>
pub fn position(&self) -> Result<Option<f64>>
pub fn set_position(&self, pos: f64) -> Result<()>
pub fn set_pos(&self, pos: f64) -> Result<()>
pub fn pos(&self) -> Result<Option<f64>>
pub fn volume(&self) -> Result<Option<i32>>
pub fn set_volume(&self, vol: i32) -> Result<()>
pub fn track(&self) -> Result<Option<SpotifyTrack>>
pub fn play_track(&self, track: String, context: Option<String>) -> Result<()>
Auto Trait Implementations§
impl Freeze for Spotify
impl RefUnwindSafe for Spotify
impl !Send for Spotify
impl !Sync for Spotify
impl Unpin for Spotify
impl UnwindSafe for Spotify
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more