pub enum RelayEvent {
Snapshot {
protocol_version: u32,
generated_at_ms: i64,
connection: ConnectionStatus,
systems: Vec<SystemLiveState>,
},
Sample {
system_id: String,
sample: LiveSample,
},
Connection {
connection: ConnectionStatus,
},
SystemsChanged {
systems: Vec<SystemSummary>,
},
}Expand description
NDJSON messages streamed from beszel-relay to connected local clients.
Variants§
Snapshot
Sent immediately upon client connect (and after lag recovery).
Sample
Incremental ~1 Hz live sample for a subscribed system.
Connection
Hub connection state transition.
Fields
§
connection: ConnectionStatusSystemsChanged
Updated metadata for subscribed systems.
Fields
§
systems: Vec<SystemSummary>Trait Implementations§
Source§impl Clone for RelayEvent
impl Clone for RelayEvent
Source§impl Debug for RelayEvent
impl Debug for RelayEvent
Source§impl<'de> Deserialize<'de> for RelayEvent
impl<'de> Deserialize<'de> for RelayEvent
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
Source§impl PartialEq for RelayEvent
impl PartialEq for RelayEvent
Source§impl Serialize for RelayEvent
impl Serialize for RelayEvent
impl StructuralPartialEq for RelayEvent
Auto Trait Implementations§
impl Forget for RelayEvent
impl Freeze for RelayEvent
impl Move for RelayEvent
impl RefUnwindSafe for RelayEvent
impl Send for RelayEvent
impl Sync for RelayEvent
impl Unpin for RelayEvent
impl UnsafeUnpin for RelayEvent
impl UnwindSafe for RelayEvent
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