Skip to main content

Module unit

Module unit 

Source
Expand description

Units, desired state, the graph, risk metadata and probes (§8).

Structs§

Confidence
Confidence in per-mille (0..=1000). Used instead of f32 to stay in the Verus subset and keep comparisons exact.
Desired
Edge
Evidence
probe is not in §8; status derivation cannot match evidence to probes without it (G11).
HoldEndpoint
An endpoint a held unit still needs to reconnect (§12d holdAllow).
Override
ParseUnitIdError
ProbeDef
ProbeSandbox
Sensitivities
A set of Sensitivity values, as flags so the proofs can read it. Serialized as the list of members in declaration order, as the BTreeSet it replaces was.
SystemdRestartPolicy
UnitDef
UnitId
Written <kind>:<name> for system scope and <kind>@<uid>[/<session>]:<name> for user scope, e.g. service:sshd, service@1000:pipewire, service:external:gym-upstream. Serialized in that form so it can key JSON maps.

Enums§

Actor
Attribution
Cadence
Condition
DesiredStatus
Disruption
Ordered by how much it costs the user; §11 compares with >=.
EdgeKind
EdgeOrigin
OverrideDesired
What the override holds the unit to (§8). A Stopped override also undoes a generation activation that starts the unit again (principle 9).
ProbeContractError
ProbeCost
ProbeKind
ProbeOrigin
ProbeResult
ProbeRole
Recovery
Ordered from most to least reversible (§13 step 3).
Scope
Sensitivity
SideEffects
UnitKind
Target is not in §8; added for units such as graphical-session (G4).
Until

Type Aliases§

UnitDefs