pub enum MpvCommand {
Show 15 variants
LoadFile {
file: String,
option: PlaylistAddOptions,
},
LoadList {
file: String,
option: PlaylistAddOptions,
},
PlaylistClear,
PlaylistMove {
from: usize,
to: usize,
},
Observe {
id: usize,
property: String,
},
PlaylistNext,
PlaylistPrev,
PlaylistRemove(usize),
PlaylistShuffle,
Quit,
ScriptMessage(Vec<String>),
ScriptMessageTo {
target: String,
args: Vec<String>,
},
Seek {
seconds: f64,
option: SeekOptions,
},
Stop,
Unobserve(usize),
}
Expand description
All possible commands that can be sent to mpv.
Not all commands are guaranteed to be implemented. If something is missing, please open an issue.
You can also use the run_command_raw
function to run commands
that are not implemented here.
See https://mpv.io/manual/master/#list-of-input-commands for the upstream list of commands.
Variants§
LoadFile
LoadList
PlaylistClear
PlaylistMove
Observe
PlaylistNext
PlaylistPrev
PlaylistRemove(usize)
PlaylistShuffle
Quit
ScriptMessage(Vec<String>)
ScriptMessageTo
Seek
Stop
Unobserve(usize)
Trait Implementations§
Source§impl Clone for MpvCommand
impl Clone for MpvCommand
Source§fn clone(&self) -> MpvCommand
fn clone(&self) -> MpvCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MpvCommand
impl Debug for MpvCommand
Source§impl<'de> Deserialize<'de> for MpvCommand
impl<'de> Deserialize<'de> for MpvCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MpvCommand
impl RefUnwindSafe for MpvCommand
impl Send for MpvCommand
impl Sync for MpvCommand
impl Unpin for MpvCommand
impl UnwindSafe for MpvCommand
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