pub enum EndReason {
Eof,
Stop,
Quit,
Redirect,
Other(i32),
}Expand description
Why playback ended (mpv’s mpv_end_file_reason).
Variants§
Eof
Natural end of file.
Stop
stop command or equivalent — user intent, don’t auto-advance.
Quit
The player is quitting.
Redirect
The entry redirected to another (e.g. a playlist file).
Other(i32)
A reason this crate doesn’t recognize; carries mpv’s raw code.
Trait Implementations§
impl Copy for EndReason
impl Eq for EndReason
impl StructuralPartialEq for EndReason
Auto Trait Implementations§
impl Freeze for EndReason
impl RefUnwindSafe for EndReason
impl Send for EndReason
impl Sync for EndReason
impl Unpin for EndReason
impl UnsafeUnpin for EndReason
impl UnwindSafe for EndReason
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