pub struct PlaybackClient { /* private fields */ }Expand description
Spotify playback API client.
Implementations§
Source§impl PlaybackClient
impl PlaybackClient
pub fn new(http: HttpClient, auth: AuthService) -> Self
pub fn play(&self) -> Result<()>
pub fn pause(&self) -> Result<()>
pub fn next(&self) -> Result<()>
pub fn previous(&self) -> Result<()>
pub fn play_context(&self, uri: &str) -> Result<()>
pub fn play_track(&self, uri: &str) -> Result<()>
pub fn status(&self) -> Result<PlayerStatus>
pub fn shuffle(&self, state: bool) -> Result<()>
pub fn repeat(&self, state: &str) -> Result<()>
pub fn queue(&self, limit: u32) -> Result<QueueState>
Trait Implementations§
Source§impl Clone for PlaybackClient
impl Clone for PlaybackClient
Source§fn clone(&self) -> PlaybackClient
fn clone(&self) -> PlaybackClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlaybackClient
impl !RefUnwindSafe for PlaybackClient
impl Send for PlaybackClient
impl Sync for PlaybackClient
impl Unpin for PlaybackClient
impl !UnwindSafe for PlaybackClient
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