pub enum PushEventType {
    EventNewCard {
        lib_id: i64,
    },
    EventRemoveCard,
    EventNewLibrary,
    EventRemoveLibrary,
    EventStreamIsReady,
    EventStreamStats(HashMap<String, String>),
    EventStartedScanning,
    EventStoppedScanning,
    EventAuthOk,
    EventAuthErr,
    MediafileMatched {
        mediafile: i64,
        library_id: i64,
    },
}
Expand description

Enum holds all event types used within dim that are dispatched over ws.

Variants§

§

EventNewCard

Fields

§lib_id: i64

A new media card has been added to the database

§

EventRemoveCard

A card has been removed from the database

§

EventNewLibrary

A new library has been added to the database

§

EventRemoveLibrary

A library has been removed from the database

§

EventStreamIsReady

A stream is ready to be streamed.

§

EventStreamStats(HashMap<String, String>)

Holds a hashmap of stats collected from ffmpeg over stdout.

§

EventStartedScanning

A library is being scanned.

§

EventStoppedScanning

A library has finished scanning.

§

EventAuthOk

Tell client auth is ok

§

EventAuthErr

Tell client their token is wrong or missing

§

MediafileMatched

Fields

§mediafile: i64
§library_id: i64

Matched mediafile. This hints to a listener that they must remove this mediafile from a list, or update its state.

Trait Implementations§

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.