pub enum ServerToEdge {
ConfigFull {
config: EdgeConfig,
},
ConfigPatch {
mapping_id: Uuid,
op: PatchOp,
mapping: Option<Mapping>,
},
TargetSwitch {
mapping_id: Uuid,
service_target: String,
},
GlyphsUpdate {
glyphs: Vec<Glyph>,
},
DisplayGlyph {
device_type: String,
device_id: String,
pattern: String,
brightness: Option<f32>,
timeout_ms: Option<u32>,
transition: Option<String>,
},
DeviceConnect {
device_type: String,
device_id: String,
},
DeviceDisconnect {
device_type: String,
device_id: String,
},
Ping,
}Expand description
Frames sent from weave-server to an edge-agent.
Variants§
ConfigFull
Full config snapshot. Sent on (re)connect and on bulk reload.
Fields
config: EdgeConfigConfigPatch
Incremental mapping change.
TargetSwitch
Server-initiated active-target switch for an existing mapping.
GlyphsUpdate
Replace the edge’s glyph set. Sent after any glyph CRUD on the server.
DisplayGlyph
Render a glyph on a specific device immediately. Used by the weave-web “Test LED” affordance to verify a device’s display path without waiting for a service-state event.
Fields
pattern: String9-line ASCII grid (* = on, anything else = off). Matches
the Glyph::pattern shape used in GlyphsUpdate.
DeviceConnect
Server-initiated request to (re)connect a specific device. Idempotent — already-connected devices are a no-op aside from clearing any “paused” state that previously suppressed reconnect attempts.
DeviceDisconnect
Server-initiated request to disconnect a specific device. Sets a paused flag so the auto-reconnect loop does not immediately re-establish the link.
Ping
Periodic keepalive to keep NAT/proxies open and detect half-open TCP.
Trait Implementations§
Source§impl Clone for ServerToEdge
impl Clone for ServerToEdge
Source§fn clone(&self) -> ServerToEdge
fn clone(&self) -> ServerToEdge
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more