pub enum SuperviseError {
Show 17 variants
InvalidSpec {
reason: String,
},
Spawn {
program: PathBuf,
source: Error,
cgroup_path: Option<PathBuf>,
},
Cgroup {
module_id: String,
source: Error,
},
LaunchNonce {
reason: String,
},
Wait {
module_id: String,
source: Error,
},
Kill {
module_id: String,
source: Error,
},
Forwarding(ForwardingError),
Registry(RegistryError),
ReloadUnavailable {
module_id: String,
reason: String,
},
Disabled {
module_id: String,
},
ReloadFailed {
module_id: String,
reason: String,
},
RegistrationStillActive {
module_id: String,
waited: Duration,
},
StatePoisoned {
module_id: Option<String>,
},
CommandClosed {
module_id: String,
},
SwapInProgress {
module_id: String,
},
SwapRefused {
module_id: String,
reason: SwapRefusal,
},
SwapFailed {
module_id: String,
arm: SwapFailureArm,
detail: String,
candidate_exit: Option<ExitReport>,
},
}Variants§
InvalidSpec
Spawn
Cgroup
LaunchNonce
CSPRNG failure generating a reserved module’s launch nonce. Fail loud rather than spawn a reserved module without its identity binding.
Wait
Kill
Forwarding(ForwardingError)
Registry(RegistryError)
Disabled
An operator restart/reload was requested for a module that is currently disabled. Restart/reload cycle a running module; a disabled module must be explicitly re-enabled (set_enabled(true)) rather than silently started by a restart, so these commands are rejected instead of re-enabling it.
ReloadFailed
RegistrationStillActive
StatePoisoned
CommandClosed
SwapInProgress
A restart or reload arrived while a swap’s candidate was warming. The swap owns the module until it cuts over or fails; a stop or disable would have aborted it instead.
SwapRefused
A swap was refused before anything was spawned.
SwapFailed
A swap spawned a candidate and gave up on it. The candidate has been
killed and its slot freed; the incumbent was left serving and was never
drained, except in the one CutoverLost case described on that arm.
Fields
arm: SwapFailureArmcandidate_exit: Option<ExitReport>How the candidate exited, when it exited on its own before the supervisor gave up on it.
Trait Implementations§
Source§impl Debug for SuperviseError
impl Debug for SuperviseError
Source§impl Display for SuperviseError
impl Display for SuperviseError
Source§impl Error for SuperviseError
impl Error for SuperviseError
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()