pub struct OffloadLink {
pub version: u16,
pub generated_at_ms: Option<i64>,
pub paired: bool,
pub bearer_acceptable: bool,
pub target: Option<String>,
pub device_id: Option<String>,
pub model_id: Option<String>,
pub owner: Option<String>,
}Expand description
The drone’s live offload-link state, written by the reconciler each tick.
Fields§
§version: u16The sidecar schema version (absent ⇒ 0 from an older writer).
generated_at_ms: Option<i64>The reconciler’s write time (epoch ms); absent/stale ⇒ treated as gone.
paired: boolA profile=workstation node resolved + is reachable this tick.
bearer_acceptable: boolThe LAN bearer to that node is healthy enough to offload over.
target: Option<String>The node’s job-API address (host:port) the drone is offloading to.
device_id: Option<String>The node’s device id, when discovery reported one.
model_id: Option<String>The detector model id the offload session runs (labels the source).
owner: Option<String>The plugin that advertised this link, when a plugin did. While the link is fresh no other plugin may replace it.
Implementations§
Source§impl OffloadLink
impl OffloadLink
Sourcepub fn stamped(
paired: bool,
bearer_acceptable: bool,
target: Option<String>,
device_id: Option<String>,
model_id: Option<String>,
now_ms: i64,
) -> Self
pub fn stamped( paired: bool, bearer_acceptable: bool, target: Option<String>, device_id: Option<String>, model_id: Option<String>, now_ms: i64, ) -> Self
A link stamped at the current schema version + now_ms write time. The
reconciler builds one of these each tick and writes it; a not-paired tick
writes paired: false (an honest “no link right now”) rather than leaving
a stale paired file behind.
Sourcepub fn is_offload_path(&self) -> bool
pub fn is_offload_path(&self) -> bool
Whether this link should count as an offload path for the tier decision: a paired node on an acceptable bearer. (The staleness gate is applied by the reader, so a link this method sees is already fresh.)