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
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
Matched mediafile. This hints to a listener that they must remove this mediafile from a list, or update its state.
Trait Implementations
sourceimpl Serialize for PushEventType
impl Serialize for PushEventType
Auto Trait Implementations
impl RefUnwindSafe for PushEventType
impl Send for PushEventType
impl Sync for PushEventType
impl Unpin for PushEventType
impl UnwindSafe for PushEventType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more