pub struct LifecycleUpdatePolicy {
pub restore: RestoreIntent,
pub post_commit_failure: PostCommitFailurePolicy,
pub quiesce_timeout: Duration,
pub post_commit_timeout: Duration,
pub rollback_restore_timeout: Duration,
}Expand description
Mechanism-level choices and bounds for one service-aware transaction.
Fields§
§restore: RestoreIntentDesired service state after a successful artifact update.
post_commit_failure: PostCommitFailurePolicyCore behavior if post-commit lifecycle/check work fails.
quiesce_timeout: DurationMaximum wait for stopping the prior service generation.
post_commit_timeout: DurationShared budget for post-commit transition and caller check work.
rollback_restore_timeout: DurationMaximum wait to restore prior lifecycle state after rollback or Core pre-receipt error.
Implementations§
Source§impl LifecycleUpdatePolicy
impl LifecycleUpdatePolicy
Sourcepub fn validate(&self) -> Result<(), LifecycleUpdateError>
pub fn validate(&self) -> Result<(), LifecycleUpdateError>
Rejects zero or overlong timeouts before any manager mutation.
§Errors
LifecycleUpdateError::InvalidPolicy when quiesce_timeout,
post_commit_timeout, or rollback_restore_timeout is zero or above
crate::MAX_TRANSITION_TIMEOUT. The error names the offending field.
Trait Implementations§
Source§impl Clone for LifecycleUpdatePolicy
impl Clone for LifecycleUpdatePolicy
impl Copy for LifecycleUpdatePolicy
Auto Trait Implementations§
impl Freeze for LifecycleUpdatePolicy
impl RefUnwindSafe for LifecycleUpdatePolicy
impl Send for LifecycleUpdatePolicy
impl Sync for LifecycleUpdatePolicy
impl Unpin for LifecycleUpdatePolicy
impl UnsafeUnpin for LifecycleUpdatePolicy
impl UnwindSafe for LifecycleUpdatePolicy
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