Skip to main content

TransitionState

Struct TransitionState 

Source
pub struct TransitionState {
    pub lifecycle: OperationLifecycle,
    pub resolved_config: ResolvedOperationConfig,
    pub root_kind: Option<RootKind>,
    pub focus: Option<ExecutionFocus>,
    pub last_observed_at_ms: WireU64,
    pub pending_effects: Vec<KernelEffect>,
    pub resolved_effects: Vec<ResolvedEffectState>,
    pub launch_tokens: Vec<LaunchTokenState>,
    pub accepted_inputs: Vec<AcceptedInputState>,
    pub accepted_cancellation: Option<AcceptedCancellationState>,
    pub terminal: Option<KernelTerminal>,
}
Expand description

§12.1 · operation lifecycle, execution focus, the effect ledger, input replay, cancellation and the terminal.

The step sequence is deliberately not here: the checkpoint header already states base_step_seq and through_step_seq, and §12.1’s “the header must not duplicate sub-state” cuts both ways.

Fields§

§lifecycle: OperationLifecycle§resolved_config: ResolvedOperationConfig

The configuration the genesis record froze (§8.1, §15.2 item 8).

Here rather than “read it off the genesis record”, because §12.3 rule 6 lets an acked checkpoint reclaim the journal prefix including genesis: after that, the checkpoint is the only place the resolved configuration still exists, and every later step is planned against it. genesis_digest in the header keeps binding the identity; this carries the content.

§root_kind: Option<RootKind>

Immutable after the root start commits (§6.1.5).

§focus: Option<ExecutionFocus>

Where control is (§7.4). Moves only on a committed transition, so a checkpoint states it rather than deriving it.

§last_observed_at_ms: WireU64

The operation’s only clock fact (§11.2): the newest accepted observed_at_ms. A restore must not accept an input that precedes it.

§pending_effects: Vec<KernelEffect>

Effects published by committed records and not yet resolved. The home of pending effects — no other partition, and not the header.

§resolved_effects: Vec<ResolvedEffectState>

Effects already answered, with the digest of the outcome that answered them. This is what makes a redelivered ResolveEffect a Replayed instead of a second record (DEC-1).

§launch_tokens: Vec<LaunchTokenState>

Launch tokens the kernel minted with a SpawnTasks effect. Effect-resolution bookkeeping, not task state — the task table lives in SchedulerState.

§accepted_inputs: Vec<AcceptedInputState>

§12.3 rule 7 · the input replay/dedupe ledger. An ack must never empty it: it is what turns a redelivery into an idempotent answer instead of a second durable record.

§accepted_cancellation: Option<AcceptedCancellationState>

The cancellation this operation already accepted, so a retry of it is answered rather than refused by the terminal it created.

§terminal: Option<KernelTerminal>

The committed terminal. The home of the terminal.

Trait Implementations§

Source§

impl Clone for TransitionState

Source§

fn clone(&self) -> TransitionState

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TransitionState

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TransitionState

Source§

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 TransitionState

Source§

fn eq(&self, other: &TransitionState) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TransitionState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TransitionState

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.