mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-15 20:32:27 +02:00
26 lines
834 B
Rust
26 lines
834 B
Rust
use crate::model::BusyStatus;
|
|
use shared::model::{
|
|
ActiveUserConnectionChange, ConfigType, LibraryScanSummary, PlaylistUpdateState, StatusCheck, StreamMeterEntry,
|
|
SystemInfo,
|
|
};
|
|
use std::{rc::Rc, sync::Arc};
|
|
|
|
#[allow(clippy::large_enum_variant)]
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
pub enum EventMessage {
|
|
Unauthorized,
|
|
ServerError(String),
|
|
ServerStatus(Rc<StatusCheck>),
|
|
ActiveUser(ActiveUserConnectionChange),
|
|
ActiveProvider(Arc<str>, usize), // single provider
|
|
ActiveProviderCount(usize), // all provider
|
|
ConfigChange(ConfigType),
|
|
Busy(BusyStatus),
|
|
PlaylistUpdate(PlaylistUpdateState),
|
|
PlaylistUpdateProgress(String, String),
|
|
WebSocketStatus(bool),
|
|
SystemInfoUpdate(SystemInfo),
|
|
LibraryScanProgress(LibraryScanSummary),
|
|
StreamMeterBatch(Vec<StreamMeterEntry>),
|
|
}
|