pub struct FlowDecisionRequest { /* private fields */ }Expand description
A validated transition awaiting repository allocation and commit.
Implementations§
Source§impl FlowDecisionRequest
impl FlowDecisionRequest
Sourcepub const fn job_execution_id(&self) -> JobExecutionId
pub const fn job_execution_id(&self) -> JobExecutionId
Returns the execution that will own the append.
Sourcepub const fn sequence(&self) -> FlowDecisionSequence
pub const fn sequence(&self) -> FlowDecisionSequence
Returns the expected execution-local append sequence.
Sourcepub const fn source_node_id(&self) -> &NodeId
pub const fn source_node_id(&self) -> &NodeId
Borrows the selected transition’s source node.
Sourcepub const fn source_step_execution_id(&self) -> Option<StepExecutionId>
pub const fn source_step_execution_id(&self) -> Option<StepExecutionId>
Returns the durable source step, when the source is a step.
Sourcepub const fn kind(&self) -> FlowTransitionKind
pub const fn kind(&self) -> FlowTransitionKind
Returns why the runtime selected this transition.
Sourcepub const fn observed_outcome(&self) -> &ExitCode
pub const fn observed_outcome(&self) -> &ExitCode
Borrows the bounded outcome used for selection.
Sourcepub const fn target(&self) -> &FlowTarget
pub const fn target(&self) -> &FlowTarget
Borrows the selected node or terminal.
Sourcepub const fn plan_fingerprint(&self) -> &[u8; 32]
pub const fn plan_fingerprint(&self) -> &[u8; 32]
Returns the exact persisted plan fingerprint.
Sourcepub const fn input_digest(&self) -> &[u8; 32]
pub const fn input_digest(&self) -> &[u8; 32]
Returns the value-redacted durable-input digest.
Sourcepub const fn reused_decision_id(&self) -> Option<FlowDecisionId>
pub const fn reused_decision_id(&self) -> Option<FlowDecisionId>
Returns the exact prior decision reused by restart, when present.
Sourcepub const fn decided_at(&self) -> SystemTime
pub const fn decided_at(&self) -> SystemTime
Returns the injected facade-clock decision time.
Sourcepub fn materialize(&self, id: FlowDecisionId) -> FlowDecision
pub fn materialize(&self, id: FlowDecisionId) -> FlowDecision
Materializes the immutable record after an adapter allocates its ID.
Repository implementations should call this only after validating the request against the persisted plan and committing its append rules.
Trait Implementations§
Source§impl Clone for FlowDecisionRequest
impl Clone for FlowDecisionRequest
Source§fn clone(&self) -> FlowDecisionRequest
fn clone(&self) -> FlowDecisionRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more