Skip to main content

LifecycleUpdateReceipt

Struct LifecycleUpdateReceipt 

Source
pub struct LifecycleUpdateReceipt {
    pub before: LifecycleSnapshot,
    pub final_snapshot: Option<LifecycleSnapshot>,
    pub transaction: TransactionReceipt,
    pub pre_commit_quiesced: bool,
    pub restoration: LifecycleRestorationStatus,
    pub post_commit_failure: Option<LifecycleFailure>,
    pub rollback_quiesce_failure: Option<LifecycleFailure>,
    pub rollback_restore_failure: Option<LifecycleFailure>,
    pub observation_failure: Option<LifecycleFailure>,
    pub engine_policy: CommitEnginePolicy,
}
Expand description

Composite result that retains the exact Core transaction evidence.

Fields§

§before: LifecycleSnapshot

Immutable pre-update observation.

§final_snapshot: Option<LifecycleSnapshot>

Final read-only observation when available.

§transaction: TransactionReceipt

Exact Core artifact transaction receipt.

§pre_commit_quiesced: bool

Whether a previously running service was quiesced before Core mutation.

§restoration: LifecycleRestorationStatus

Lifecycle restoration state at the terminal artifact disposition.

§post_commit_failure: Option<LifecycleFailure>

Post-commit lifecycle or caller-check failure, when one occurred.

§rollback_quiesce_failure: Option<LifecycleFailure>

Failure stopping a possibly running new generation before Core rollback.

§rollback_restore_failure: Option<LifecycleFailure>

Failure restoring the old service state after successful artifact rollback.

§observation_failure: Option<LifecycleFailure>

Failure to obtain the optional final read-only observation.

§engine_policy: CommitEnginePolicy

The commit-engine policy that governed this transaction.

This makes the selected CommitEnginePolicy inputs observable in the returned evidence, including the permissive ownership-loss tolerance, which otherwise has no failure to attach itself to.

Implementations§

Source§

impl LifecycleUpdateReceipt

Source

pub fn artifact_disposition(&self) -> TransactionDisposition

Core’s authoritative artifact disposition.

Source

pub fn manual_artifact_recovery_required(&self) -> bool

Whether Core retained recovery evidence requiring manual artifact recovery.

Source

pub fn new_generation_retained(&self) -> bool

Whether the new artifact generation remains installed.

Source

pub fn service_state_restored(&self) -> bool

Whether service lifecycle was restored and confirmed for the terminal generation.

Trait Implementations§

Source§

impl Debug for LifecycleUpdateReceipt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.