pub struct GetPlayers {}Expand description
Retrieve all known players.
use heos::HeosConnection;
use heos::command::player::GetPlayers;
use heos::data::player::PlayerInfo;
use std::time::Duration;
let heos = HeosConnection::connect_any(Duration::from_secs(1)).await?;
let players: Vec<PlayerInfo> = heos.command(GetPlayers::default()).await?;Trait Implementations§
Source§impl Clone for GetPlayers
impl Clone for GetPlayers
Source§fn clone(&self) -> GetPlayers
fn clone(&self) -> GetPlayers
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 GetPlayers
impl Command for GetPlayers
Source§type Response = Vec<PlayerInfo>
type Response = Vec<PlayerInfo>
Type of response that is expected when the command is sent. For commands that don’t care
about the expected response,
() can be used.impl Copy for GetPlayers
Source§impl Debug for GetPlayers
impl Debug for GetPlayers
Source§impl Default for GetPlayers
impl Default for GetPlayers
Source§fn default() -> GetPlayers
fn default() -> GetPlayers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetPlayers
impl RefUnwindSafe for GetPlayers
impl Send for GetPlayers
impl Sync for GetPlayers
impl Unpin for GetPlayers
impl UnsafeUnpin for GetPlayers
impl UnwindSafe for GetPlayers
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