pub enum EventEndFileReason {
Eof,
Stop,
Quit,
Error,
Redirect,
Unknown,
Unimplemented(String),
}Expand description
Reason behind the MPV_EVENT_END_FILE event.
Ref: https://mpv.io/manual/stable/#command-interface-mpv-event-end-file
Variants§
Eof
The file has ended. This can (but doesn’t have to) include incomplete files or broken network connections under circumstances.
Stop
Playback was ended by a command.
Quit
Playback was ended by sending the quit command.
Error
An error happened. In this case, an error field is present with the error string.
Redirect
Happens with playlists and similar. For details, see
MPV_END_FILE_REASON_REDIRECT
in the C API.
Unknown
Unknown. Normally doesn’t happen, unless the Lua API is out of sync with the C API. (Likewise, it could happen that your script gets reason strings that did not exist yet at the time your script was written.)
Unimplemented(String)
A catch-all enum variant in case mpvipc-async has not implemented the
returned error yet.
Trait Implementations§
Source§impl Clone for EventEndFileReason
impl Clone for EventEndFileReason
Source§fn clone(&self) -> EventEndFileReason
fn clone(&self) -> EventEndFileReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more