#[non_exhaustive]pub enum WorkflowCheckpointPhase {
Ready,
StepInFlight {
step: StepId,
},
Waiting {
step: StepId,
wait: WorkflowWait,
},
ParallelInFlight {
step: StepId,
branches: BTreeMap<StepId, ParallelBranchCheckpoint>,
},
RaceInFlight {
step: StepId,
branches: BTreeMap<StepId, ParallelBranchCheckpoint>,
},
Completed {
outcome: WorkflowOutcome,
},
}Expand description
Persisted workflow execution phase.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ready
Stable output is ready for the next node.
StepInFlight
One node may have partially executed.
Waiting
The worker lease was released while this node awaits a durable wake.
ParallelInFlight
A parallel node has one or more incomplete branches.
Fields
§
branches: BTreeMap<StepId, ParallelBranchCheckpoint>Durable branch progress keyed independently of completion order.
RaceInFlight
A first-success race has no durable winner yet, or awaits commit.
Fields
§
branches: BTreeMap<StepId, ParallelBranchCheckpoint>Durable branch progress keyed independently of completion order.
Completed
The workflow reached a terminal output.
Fields
§
outcome: WorkflowOutcomeComplete canonical workflow result.
Trait Implementations§
Source§impl Clone for WorkflowCheckpointPhase
impl Clone for WorkflowCheckpointPhase
Source§fn clone(&self) -> WorkflowCheckpointPhase
fn clone(&self) -> WorkflowCheckpointPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkflowCheckpointPhase
impl Debug for WorkflowCheckpointPhase
Source§impl<'de> Deserialize<'de> for WorkflowCheckpointPhase
impl<'de> Deserialize<'de> for WorkflowCheckpointPhase
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 WorkflowCheckpointPhase
impl PartialEq for WorkflowCheckpointPhase
Source§impl Serialize for WorkflowCheckpointPhase
impl Serialize for WorkflowCheckpointPhase
impl StructuralPartialEq for WorkflowCheckpointPhase
Auto Trait Implementations§
impl Freeze for WorkflowCheckpointPhase
impl RefUnwindSafe for WorkflowCheckpointPhase
impl Send for WorkflowCheckpointPhase
impl Sync for WorkflowCheckpointPhase
impl Unpin for WorkflowCheckpointPhase
impl UnsafeUnpin for WorkflowCheckpointPhase
impl UnwindSafe for WorkflowCheckpointPhase
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