MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / to_failed

Method to_failed

nodedb-cluster/src/lifecycle_state.rs:157–161  ·  view source on GitHub ↗
(&self, reason: impl Into<String>)

Source from the content-addressed store, hash-verified

155 }
156
157 pub fn to_failed(&self, reason: impl Into<String>) {
158 let reason = reason.into();
159 let detail = format!("failed: {reason}");
160 self.transition(ClusterLifecycleState::Failed { reason }, &detail);
161 }
162
163 /// Shared implementation: swap the state, log at INFO, push the
164 /// status string to systemd.

Callers 3

start_clusterFunction · 0.80
joinFunction · 0.80

Calls 1

transitionMethod · 0.80

Tested by 1