pub enum HostEvent {
NodeBirth {
group: String,
edge: String,
metrics: Vec<Metric>,
},
NodeData {
group: String,
edge: String,
metrics: Vec<Metric>,
},
NodeDeath {
group: String,
edge: String,
timestamp: i64,
devices: Vec<String>,
},
DeviceBirth {
group: String,
edge: String,
device: String,
metrics: Vec<Metric>,
},
DeviceData {
group: String,
edge: String,
device: String,
metrics: Vec<Metric>,
},
DeviceDeath {
group: String,
edge: String,
device: String,
timestamp: i64,
},
RebirthRequested {
group: String,
edge: String,
},
Ignored,
}Expand description
An event surfaced by HostApplication::handle_incoming.
Variants§
NodeBirth
An Edge Node birth was processed; metrics carry names + datatypes.
NodeData
Edge Node data (alias-only metrics resolved back to names where possible).
NodeDeath
An Edge Node death: its metrics, and the listed devices, are now stale
as of timestamp (epoch ms). The consumer should mark every cached metric
for this node and those devices stale.
Fields
DeviceBirth
A Device birth.
Fields
DeviceData
Device data (alias-resolved).
Fields
DeviceDeath
A Device death: its metrics are now stale as of timestamp (the DDEATH
payload timestamp, epoch ms).
Fields
RebirthRequested
The host requested a rebirth (published an NCMD) for an Edge Node.
Ignored
A message that did not require action (own command echo, foreign/own STATE, a stale NDEATH, or a debounced rebirth).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostEvent
impl RefUnwindSafe for HostEvent
impl Send for HostEvent
impl Sync for HostEvent
impl Unpin for HostEvent
impl UnsafeUnpin for HostEvent
impl UnwindSafe for HostEvent
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