pub enum TxnState {
Show 15 variants
Prepared,
Staged,
Built,
Activating,
Checking,
Published,
Publishing,
AwaitingBoot,
Promoted,
Committed,
Reverting,
Reverted,
RecoveryFailed,
Rejected(RejectReason),
Cancelled(Actor),
}Variants§
Prepared
Staged
Built
Activating
Checking
Published
Boot entry written.
Publishing
The boot-only path (§12 step 7): journaled before publish_boot_once,
the first boot mutation; the crash table asks the boot loader.
AwaitingBoot
A boot-only candidate published as a one-shot next-boot entry (§12f); active for I6, confirmed or reverted at that boot.
Promoted
Override source promoted.
Committed
Reverting
Reverted
RecoveryFailed
Rejected(RejectReason)
Refused after Prepared (precondition, expired or invalidated approval, policy).
Cancelled(Actor)
Withdrawn before any mutation.
Implementations§
Source§impl TxnState
impl TxnState
pub fn is_terminal(&self) -> bool
pub fn is_pre_mutation(&self) -> bool
pub fn is_exclusive(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxnState
impl<'de> Deserialize<'de> for TxnState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TxnState
impl StructuralPartialEq for TxnState
Auto Trait Implementations§
impl Freeze for TxnState
impl RefUnwindSafe for TxnState
impl Send for TxnState
impl Sync for TxnState
impl Unpin for TxnState
impl UnsafeUnpin for TxnState
impl UnwindSafe for TxnState
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