pub enum UiFrame {
Snapshot {
snapshot: UiSnapshot,
},
EdgeOnline {
edge: EdgeInfo,
},
EdgeOffline {
edge_id: String,
},
ServiceState {
edge_id: String,
service_type: String,
target: String,
property: String,
output_id: Option<String>,
value: Value,
},
DeviceState {
edge_id: String,
device_type: String,
device_id: String,
property: String,
value: Value,
},
MappingChanged {
mapping_id: Uuid,
op: PatchOp,
mapping: Option<Mapping>,
},
GlyphsChanged {
glyphs: Vec<Glyph>,
},
}Expand description
Frames sent from weave-server to a Web UI client on /ws/ui.
Variants§
Snapshot
Initial full snapshot, pushed once on connect.
Fields
§
snapshot: UiSnapshotEdgeOnline
An edge completed its Hello handshake or has otherwise come online.
EdgeOffline
An edge has disconnected (ws closed).
ServiceState
One service-state update from a connected edge.
Fields
DeviceState
One device-state update from a connected edge (battery, RSSI, etc.).
MappingChanged
Mapping CRUD happened on the server. UIs replace their copy.
GlyphsChanged
The glyph set changed. UIs refresh their registry.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UiFrame
impl<'de> Deserialize<'de> for UiFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UiFrame
impl RefUnwindSafe for UiFrame
impl Send for UiFrame
impl Sync for UiFrame
impl Unpin for UiFrame
impl UnsafeUnpin for UiFrame
impl UnwindSafe for UiFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more