mirror of
https://github.com/euzu/tuliprox.git
synced 2026-09-30 21:12:12 +02:00
12 lines
402 B
Rust
12 lines
402 B
Rust
use std::net::SocketAddr;
|
|
use crate::model::StreamInfo;
|
|
|
|
#[allow(clippy::large_enum_variant)]
|
|
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq)]
|
|
#[serde(tag = "type", content = "payload", rename_all = "camelCase")]
|
|
pub enum ActiveUserConnectionChange {
|
|
Updated(StreamInfo),
|
|
Disconnected(SocketAddr), // addr
|
|
Connections(usize, usize) // user_count, connection_count
|
|
}
|