pub enum MpvCommand {
SetProperty,
PlaylistNext,
PlaylistPrev,
Seek,
Quit,
PlaylistMove,
PlaylistRemove,
PlaylistClear,
GetProperty,
LoadFile,
}
Expand description
Represents common MPV commands.
This enum provides variants for frequently used MPV commands, which can be converted to their
string equivalents using the as_str
method.
§Errors
Returns an error if the connection to the socket fails or the command execution encounters issues.
Variants§
SetProperty
Sets a property to a specified value in MPV.
PlaylistNext
Moves to the next item in the playlist.
PlaylistPrev
Moves to the previous item in the playlist.
Seek
Seeks to a specific time in the current media.
Quit
Quits the MPV application.
PlaylistMove
Moves an item in the playlist from one index to another.
PlaylistRemove
Removes an item from the playlist.
PlaylistClear
Clears all items from the playlist.
GetProperty
Retrieves the value of a property in MPV.
LoadFile
Loads a file into MPV.
Implementations§
Trait Implementations§
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