pub struct EndingFacts {Show 15 fields
pub was_up: bool,
pub now_down: bool,
pub stopped_cleanly: bool,
pub ended: Option<Ending>,
pub service: bool,
pub touched_by_planarian: bool,
pub expected: bool,
pub requirement_crashed: bool,
pub security: bool,
pub stops_are_faults: bool,
pub systemd_restarts: bool,
pub lenient: bool,
pub network_tool: bool,
pub held: bool,
pub hold_tried: bool,
}Expand description
What the daemon observed about one unit between two ticks.
Fields§
§was_up: boolRunning or Degraded at the last tick.
now_down: boolFailed or Stopped now.
stopped_cleanly: boolStopped (inactive), not Failed.
ended: Option<Ending>How the main process ended, if the supervisor says.
service: boolA service (only services have a residue).
touched_by_planarian: boolPlanarian acted on it, or changed the generation, since the last tick.
expected: boolDesired present under the current conditions.
requirement_crashed: boolA unit it Requires crashed this tick: it went down with that fault.
security: boolSecurity-sensitive.
stops_are_faults: boolinferStops = false (B-11).
systemd_restarts: boolsystemd restarts it (Restart=).
lenient: boolThe posture infers intent (Relaxed or Standard).
network_tool: boolA network tool (UnitDef.holds): §12d holds its traffic when it
fails or is stopped outside Planarian and it is protecting.
held: boolA hold is in place for it now (SystemState.holds, or the host’s
/run/planarian/hold/<unit>), read after any attempt to apply one.
hold_tried: boolThe daemon has asked the host to hold it for this stop; the host’s condition (the footprint, a release) decides, as OnFailure= does.
Trait Implementations§
Source§impl Clone for EndingFacts
impl Clone for EndingFacts
Source§fn clone(&self) -> EndingFacts
fn clone(&self) -> EndingFacts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more