pub enum LifecycleGroupError {
InvalidConfig(String),
StartFailed {
index: u8,
error: LifecycleError,
},
PlacementFailed {
index: u8,
reason: String,
},
}Expand description
Group-spawn failure shape. Distinguishes config-time errors
(rejected on the caller side before any on_start fires) from
per-replica on_start failures (carry the failing index for
operator diagnosis) and from placement failures (no candidate
node satisfied the daemon’s capability requirements + spread
constraint).
Variants§
InvalidConfig(String)
replica_count == 0 or other up-front validation
rejected the spawn.
StartFailed
A specific replica’s on_start failed. The other
already-started replicas drop cleanly via their handles’
Drop impl when the partially-built group goes out of
scope.
Fields
error: LifecycleErrorThe underlying lifecycle error.
PlacementFailed
Scheduler::place_with_spread could not find a candidate
node satisfying the daemon’s CapabilityFilter outside
the already-used set (spread invariant).
Trait Implementations§
Source§impl Debug for LifecycleGroupError
impl Debug for LifecycleGroupError
Source§impl Display for LifecycleGroupError
impl Display for LifecycleGroupError
Source§impl Error for LifecycleGroupError
impl Error for LifecycleGroupError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()