pub struct UnitDef {Show 14 fields
pub id: UnitId,
pub desired: Desired,
pub edges: Vec<Edge>,
pub sensitivity: Sensitivities,
pub restart_disruption: Disruption,
pub probes: Vec<ProbeDef>,
pub synonyms: Vec<String>,
pub systemd_restart: Option<SystemdRestartPolicy>,
pub startup_grace: Option<Millis>,
pub runtime_repair: Option<String>,
pub stops_are_faults: bool,
pub holds: bool,
pub hold_allow: Vec<HoldEndpoint>,
pub hold_interfaces: Vec<String>,
}Fields§
§id: UnitId§desired: Desired§edges: Vec<Edge>§sensitivity: Sensitivities§restart_disruption: Disruption§probes: Vec<ProbeDef>§synonyms: Vec<String>§systemd_restart: Option<SystemdRestartPolicy>§startup_grace: Option<Millis>How long after the unit comes up a failing health probe is not yet a
fault (it may still be starting). None: the daemon’s default.
runtime_repair: Option<String>A runtime-settable option (§12a) whose other values can restore this
unit: wifi.network for a Wi-Fi interface. When it diverges, the
diagnoser may propose another value the backend says is available.
stops_are_faults: boolThe manifest’s inferStops = false (§11, B-11): a stop outside
Planarian is a fault (restarted and alarmed), never inferred as a
person’s intent. Backup, sync and the desktop’s own units.
holds: bool§12d Network security fails closed: its failure holds the machine’s
traffic. Computed by the module (nix/module.nix isNetworkSecurity),
exported, never a manifest option. Interim (B-21): the netwatch
footprint replaces it.
hold_allow: Vec<HoldEndpoint>What the hold still lets it reach (the manifest’s holdAllow).
hold_interfaces: Vec<String>Its own interfaces, which the hold passes (holdInterfaces).