Files
tuliprox/frontend/src/model/event_message.rs
T
euzuandGitHub a05b0536f5 Feature/stream meter (#659)
* Connection lock for shared stream fixed
* stream meter
2026-03-21 05:29:59 +01:00

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>),
}