pub enum PlayerCommand {
Show 13 variants
Next,
Previous,
Toggle,
Play {
uri: Option<String>,
pin: Option<String>,
},
Pause,
Status {
id_only: Option<String>,
},
Devices {
command: DevicesCommand,
},
Queue {
command: QueueCommand,
},
Seek {
position: String,
},
Repeat {
mode: String,
},
Volume {
percent: u8,
},
Shuffle {
state: String,
},
Recent,
}Variants§
Next
Skip to next track (alias: n)
Previous
Skip to previous track (alias: prev)
Toggle
Toggle playback (play/pause) (alias: t)
Play
Start or resume playback
Fields
Pause
Pause playback
Status
Get current playback status (alias: st)
Devices
Manage playback devices (alias: dev)
Fields
§
command: DevicesCommandQueue
Manage playback queue (alias: q)
Fields
§
command: QueueCommandSeek
Seek to position in current track
Repeat
Set repeat mode (alias: rep)
Volume
Set playback volume (alias: vol)
Shuffle
Toggle shuffle mode (alias: sh)
Recent
Get recently played tracks (alias: rec)
Trait Implementations§
Source§impl FromArgMatches for PlayerCommand
impl FromArgMatches for PlayerCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for PlayerCommand
impl Subcommand for PlayerCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for PlayerCommand
impl RefUnwindSafe for PlayerCommand
impl Send for PlayerCommand
impl Sync for PlayerCommand
impl Unpin for PlayerCommand
impl UnwindSafe for PlayerCommand
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