pub struct SetQuickSelect {
pub player_id: PlayerId,
pub id: QuickSelectId,
}Expand description
Set a QuickSelect slot to use the currently playing source.
Note: This is not supported by all HEOS devices.
use heos::HeosConnection;
use heos::command::player::SetQuickSelect;
use heos::data::player::PlayerId;
use heos::data::quickselect::QuickSelectId;
use std::time::Duration;
let heos = HeosConnection::connect_any(Duration::from_secs(1)).await?;
heos.command(SetQuickSelect {
player_id: PlayerId::from(42),
id: QuickSelectId::try_from(3).unwrap(),
}).await?;Fields§
§player_id: PlayerIdID of the player to set.
id: QuickSelectIdID of the QuickSelect slot.
Trait Implementations§
Source§impl Clone for SetQuickSelect
impl Clone for SetQuickSelect
Source§fn clone(&self) -> SetQuickSelect
fn clone(&self) -> SetQuickSelect
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 SetQuickSelect
impl Command for SetQuickSelect
impl Copy for SetQuickSelect
Source§impl Debug for SetQuickSelect
impl Debug for SetQuickSelect
Auto Trait Implementations§
impl Freeze for SetQuickSelect
impl RefUnwindSafe for SetQuickSelect
impl Send for SetQuickSelect
impl Sync for SetQuickSelect
impl Unpin for SetQuickSelect
impl UnsafeUnpin for SetQuickSelect
impl UnwindSafe for SetQuickSelect
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