pub struct StateVector {
pub lifecycle_phase: LifecyclePhase,
pub ownership_state: OwnershipState,
pub eligibility_state: EligibilityState,
pub blocking_reason: BlockingReason,
pub terminal_outcome: TerminalOutcome,
pub attempt_state: AttemptState,
pub public_state: PublicState,
}Expand description
The full 6+1 dimension execution state vector.
Fields§
§lifecycle_phase: LifecyclePhase§ownership_state: OwnershipState§eligibility_state: EligibilityState§blocking_reason: BlockingReason§terminal_outcome: TerminalOutcome§attempt_state: AttemptState§public_state: PublicStateEngine-derived user-facing label.
Implementations§
Source§impl StateVector
impl StateVector
Sourcepub fn derive_public_state(&self) -> PublicState
pub fn derive_public_state(&self) -> PublicState
Derive public_state from the other 6 dimensions per RFC-001 §2.4.
Never panics. In distributed systems, constraint violations can occur via partial writes or reconciler drift. Impossible combinations log a warning and return a safe fallback instead of crashing.
Sourcepub fn is_consistent(&self) -> bool
pub fn is_consistent(&self) -> bool
Check if the stored public_state matches the derived value.
Trait Implementations§
Source§impl Clone for StateVector
impl Clone for StateVector
Source§fn clone(&self) -> StateVector
fn clone(&self) -> StateVector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateVector
impl Debug for StateVector
Source§impl<'de> Deserialize<'de> for StateVector
impl<'de> Deserialize<'de> for StateVector
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
Source§impl PartialEq for StateVector
impl PartialEq for StateVector
Source§impl Serialize for StateVector
impl Serialize for StateVector
impl Eq for StateVector
impl StructuralPartialEq for StateVector
Auto Trait Implementations§
impl Freeze for StateVector
impl RefUnwindSafe for StateVector
impl Send for StateVector
impl Sync for StateVector
impl Unpin for StateVector
impl UnsafeUnpin for StateVector
impl UnwindSafe for StateVector
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