Enum mpv::Event [] [src]

pub enum Event<'a> {
    Shutdown,
    LogMessage {
        prefix: &'static str,
        level: &'static str,
        text: &'static str,
        log_level: LogLevel,
    },
    GetPropertyReply {
        name: &'static str,
        result: Result<Format<'a>>,
        reply_userdata: u32,
    },
    SetPropertyReply(Result<()>, u32),
    CommandReply(Result<()>, u32),
    StartFile,
    EndFile(Result<EndFileReason>),
    FileLoaded,
    TracksChanged,
    TrackSwitched,
    Idle,
    Pause,
    Unpause,
    Tick,
    ClientMessage,
    VideoReconfig,
    AudioReconfig,
    MetadataUpdate,
    Seek,
    PlaybackRestart,
    PropertyChange {
        name: &'static str,
        change: Format<'a>,
        reply_userdata: u32,
    },
    ChapterChange,
    QueueOverflow,
    Unused,
}

Variants

Received when the player is shutting down

Has not been tested, received when explicitly asked to MPV

Fields of LogMessage

Received when using get_property_async

Fields of GetPropertyReply

Received when using set_property_async

Received when using command_async

Event received when a new file is playing

Event received when the file being played currently has stopped, for an error or not

Event received when a file has been loaded, but has not been started

Deprecated

Received when the player has no more files to play and is in an idle state

The player paused playback

The player started playback again

Unimplemented

The player changed current position

Received when used with observe_property

Fields of PropertyChange

Received when the Event Queue is full

Unused event

Trait Implementations

impl<'a> Debug for Event<'a>
[src]

Formats the value using the given formatter.