pub struct CloudLink {
pub version: u16,
pub generated_at_ms: Option<i64>,
pub paired: bool,
pub cloud_url_set: bool,
pub broker_connected: Option<bool>,
pub last_heartbeat_ok_ms: Option<i64>,
pub last_heartbeat_status: Option<u16>,
pub last_heartbeat_error: Option<String>,
}Expand description
The relay’s live link state.
Fields§
§version: u16The sidecar schema version (absent means 0, an older writer).
generated_at_ms: Option<i64>The writer’s clock at write time (epoch ms).
paired: boolThe node holds a pairing key.
cloud_url_set: boolA cloud URL is configured. Without one the relay is local-only.
broker_connected: Option<bool>The broker session is confirmed up. None when no session is running
(unpaired, local-only, or no broker in this posture).
last_heartbeat_ok_ms: Option<i64>When the last /agent/status POST was answered with a 2xx (epoch ms).
last_heartbeat_status: Option<u16>The HTTP status of the last /agent/status answer, 2xx or not.
last_heartbeat_error: Option<String>The transport error of the last POST that got no answer at all.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CloudLink
impl<'de> Deserialize<'de> for CloudLink
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
impl StructuralPartialEq for CloudLink
Auto Trait Implementations§
impl Freeze for CloudLink
impl RefUnwindSafe for CloudLink
impl Send for CloudLink
impl Sync for CloudLink
impl Unpin for CloudLink
impl UnsafeUnpin for CloudLink
impl UnwindSafe for CloudLink
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