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 moreSource§impl Debug for FlowDecisionRequest
impl Debug for FlowDecisionRequest
impl Eq for FlowDecisionRequest
Source§impl PartialEq for FlowDecisionRequest
impl PartialEq for FlowDecisionRequest
impl StructuralPartialEq for FlowDecisionRequest
Auto Trait Implementations§
impl Freeze for FlowDecisionRequest
impl RefUnwindSafe for FlowDecisionRequest
impl Send for FlowDecisionRequest
impl Sync for FlowDecisionRequest
impl Unpin for FlowDecisionRequest
impl UnsafeUnpin for FlowDecisionRequest
impl UnwindSafe for FlowDecisionRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more