pub struct TransitionRule {
pub from_state: LoopState,
pub trigger: LoopTrigger,
pub guard: TransitionGuard,
pub events: &'static [LoopEventKind],
pub journal_records: &'static [JournalRecordKind],
pub checkpoint_policy: CheckpointPolicy,
pub side_effect_policy: SideEffectPolicy,
pub next_state: LoopState,
pub terminal_result: Option<LoopTerminalResult>,
pub recovery_classification: Option<RecoveryClassification>,
}Expand description
Holds transition rule application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§from_state: LoopStateFrom state used by this record or request.
trigger: LoopTriggerTrigger used by this record or request.
guard: TransitionGuardGuard used by this record or request.
events: &'static [LoopEventKind]Bounded events included in this record. Limits and truncation are represented by companion metadata when applicable.
journal_records: &'static [JournalRecordKind]Journal record kinds produced by this capability or feature. Use them to keep replay and recovery fixtures aligned with the public contract.
checkpoint_policy: CheckpointPolicyCheckpoint policy used by this record or request.
side_effect_policy: SideEffectPolicySide effect policy used by this record or request.
next_state: LoopStateNext state used by this record or request.
terminal_result: Option<LoopTerminalResult>Optional terminal result value. When absent, callers should use the documented default or skip that optional behavior.
recovery_classification: Option<RecoveryClassification>Optional recovery classification value. When absent, callers should use the documented default or skip that optional behavior.
Implementations§
Source§impl TransitionRule
impl TransitionRule
Sourcepub fn output(&self) -> TransitionOutput
pub fn output(&self) -> TransitionOutput
Returns output derived from the supplied state. This uses only local coordinator state and performs no hidden host work.
Trait Implementations§
Source§impl Clone for TransitionRule
impl Clone for TransitionRule
Source§fn clone(&self) -> TransitionRule
fn clone(&self) -> TransitionRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransitionRule
impl Debug for TransitionRule
impl Eq for TransitionRule
Source§impl PartialEq for TransitionRule
impl PartialEq for TransitionRule
Source§fn eq(&self, other: &TransitionRule) -> bool
fn eq(&self, other: &TransitionRule) -> bool
self and other values to be equal, and is used by ==.