pub(crate) enum CommandOptions {
Show 14 variants
Play {
index: Option<usize>,
},
Pause,
Stop,
Next,
Prev,
Seek {
seconds: i32,
},
Move {
index1: usize,
index2: usize,
},
Remove {
index: Option<usize>,
},
Clear,
List,
Add {
filenames: Vec<String>,
},
Replace {
filenames: Vec<String>,
},
Prop {
properties: Vec<String>,
},
Interactive,
}Variants§
Play
Play media at the specified index in the playlist
Pause
Pause the currently playing media
Stop
Stop the playback and quit MPV
Next
Skip to the next item in the playlist
Prev
Skip to the previous item in the playlist
Seek
Seek to a specific position in the currently playing media
Move
Move an item in the playlist from one index to another
Remove
Remove an item from the playlist
If invoked while playlist has no entries, or if the only entry is the active video, then this will exit MPV.
Clear
Clear the entire playlist
List
List all the items in the playlist
Add
Add files to the playlist
Needs at least one file to be passed.
Replace
Replace the current playlist with new files
Prop
Fetch properties of the current playback or playlist
Interactive
Enter interactive mode to send commands to MPV IPC
Trait Implementations§
Source§impl FromArgMatches for CommandOptions
impl FromArgMatches for CommandOptions
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 CommandOptions
impl Subcommand for CommandOptions
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 CommandOptions
impl RefUnwindSafe for CommandOptions
impl Send for CommandOptions
impl Sync for CommandOptions
impl Unpin for CommandOptions
impl UnwindSafe for CommandOptions
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