pub struct PlayPrevious {
pub player_id: PlayerId,
}Expand description
Play the previous song.
use heos::HeosConnection;
use heos::command::player::PlayPrevious;
use heos::data::player::PlayerId;
use std::time::Duration;
let heos = HeosConnection::connect_any(Duration::from_secs(1)).await?;
heos.command(PlayPrevious {
player_id: PlayerId::from(42),
}).await?;Fields§
§player_id: PlayerIdID of the player to play on.
Trait Implementations§
Source§impl Clone for PlayPrevious
impl Clone for PlayPrevious
Source§fn clone(&self) -> PlayPrevious
fn clone(&self) -> PlayPrevious
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for PlayPrevious
impl Command for PlayPrevious
impl Copy for PlayPrevious
Source§impl Debug for PlayPrevious
impl Debug for PlayPrevious
Auto Trait Implementations§
impl Freeze for PlayPrevious
impl RefUnwindSafe for PlayPrevious
impl Send for PlayPrevious
impl Sync for PlayPrevious
impl Unpin for PlayPrevious
impl UnsafeUnpin for PlayPrevious
impl UnwindSafe for PlayPrevious
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