#[non_exhaustive]pub enum LifecycleUpdateError {
InvalidPolicy {
field: &'static str,
},
Preflight {
failure: LifecycleFailure,
},
Quiesce {
failure: LifecycleFailure,
restore_failure: Option<LifecycleFailure>,
},
CoreBeforeReceipt {
core: Error,
restore_failure: Option<LifecycleFailure>,
},
}Expand description
Failure before a composite terminal transaction receipt could be returned.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidPolicy
One timeout is zero or exceeds the service transition limit.
Preflight
Preflight failed before service or artifact mutation.
Fields
§
failure: LifecycleFailureStructured failure evidence.
Quiesce
Pre-commit service quiescence failed; attempted restoration is retained separately.
Fields
§
failure: LifecycleFailureOriginal quiescence failure.
§
restore_failure: Option<LifecycleFailure>Failure restoring the pre-update state after the stop attempt, if any.
CoreBeforeReceipt
Core returned an error before a terminal receipt; service restoration was attempted.
Fields
§
restore_failure: Option<LifecycleFailure>Failure restoring pre-update lifecycle state, if any.
Trait Implementations§
Source§impl Debug for LifecycleUpdateError
impl Debug for LifecycleUpdateError
Source§impl Display for LifecycleUpdateError
impl Display for LifecycleUpdateError
Source§impl Error for LifecycleUpdateError
impl Error for LifecycleUpdateError
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 !RefUnwindSafe for LifecycleUpdateError
impl !UnwindSafe for LifecycleUpdateError
impl Freeze for LifecycleUpdateError
impl Send for LifecycleUpdateError
impl Sync for LifecycleUpdateError
impl Unpin for LifecycleUpdateError
impl UnsafeUnpin for LifecycleUpdateError
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