pub enum LifecycleError {
Journal,
Missing(AttemptId),
Transition,
RecoveryIncomplete,
SlotQuarantined {
class: &'static str,
detail: String,
},
Failed(FailureReason),
}Variants§
Journal
Missing(AttemptId)
Transition
RecoveryIncomplete
SlotQuarantined
A persistent slot could not be proven safe to scrub, so the attempt keeps its uncleaned state and, with it, its slot lease.
Separate from Self::Failed because the two demand opposite handling
from the same call sites. A failure aborts the pass; a quarantine must
not, or one stuck slot would stop the host launching anything at all —
which is precisely what 04-security-recovery.md rules out when it says
such an attempt “does not count as active host capacity” and “recovery
retries the same cleanup”.
Fields
Failed(FailureReason)
Trait Implementations§
Source§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl Display for LifecycleError
impl Display for LifecycleError
Source§impl Error for LifecycleError
impl Error for LifecycleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for LifecycleError
impl RefUnwindSafe for LifecycleError
impl Send for LifecycleError
impl Sync for LifecycleError
impl Unpin for LifecycleError
impl UnsafeUnpin for LifecycleError
impl UnwindSafe for LifecycleError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more