agentmux_srv/backend/lan_discovery/
events.rs1use serde::Serialize;
7
8use super::LanInstance;
9
10#[derive(Debug, Clone, Serialize, ts_rs::TS)]
12#[ts(export, export_to = "../../../frontend/types/rpc/")]
13pub struct LanInstanceList(pub Vec<LanInstance>);
14
15#[derive(Debug, Clone, Serialize, ts_rs::TS)]
17#[ts(export, export_to = "../../../frontend/types/rpc/")]
18pub struct LanDiscoveryError {
19 pub error: String,
20}
21
22#[derive(Debug, Clone, Serialize, ts_rs::TS)]
24#[ts(export, export_to = "../../../frontend/types/rpc/")]
25pub struct LanDiscoverability {
26 #[ts(type = r#""healthy" | "degraded" | "undiscoverable" | "off""#)]
27 pub state: String,
28 pub missing: Vec<String>,
30 pub rebuilds: u32,
32}