Enum events::PushEventType
source · 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
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
Matched mediafile. This hints to a listener that they must remove this mediafile from a list, or update its state.