Skip to main content

parse_status_json

Function parse_status_json 

Source
pub fn parse_status_json(enabled: bool, raw: &Value) -> MeshStatus
Expand description

Parse the JSON emitted by tailscale status --json into a MeshStatus.

enabled is supplied by the caller (it reflects RYU_MESH_ENABLED, not the daemon). The shape is defensive: missing fields degrade to the defaults so a NeedsLogin daemon never panics this path.