pub enum WorkflowStatus {
Pending,
Running,
Paused,
Completed,
Failed,
Cancelled,
LimitExceeded,
}Expand description
The lifecycle status of a workflow execution.
Variants§
Pending
Created, not yet started.
Running
One or more nodes are active or queued.
Paused
Paused waiting for: human approval, external event, or timer.
Completed
All terminal nodes reached successfully.
Failed
A node failed beyond its retry policy.
Cancelled
Explicitly cancelled.
LimitExceeded
A strategy limit (max_iterations, max_cost_usd, timeout_seconds) was exceeded. Terminal — does not transition to any other state.
Implementations§
Source§impl WorkflowStatus
impl WorkflowStatus
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns true if this is a terminal status (no further transitions possible).
Sourcepub fn validate_transition(&self, next: &WorkflowStatus) -> Result<()>
pub fn validate_transition(&self, next: &WorkflowStatus) -> Result<()>
Validate a state transition. Returns Ok(()) if the transition is valid.
Trait Implementations§
Source§impl Clone for WorkflowStatus
impl Clone for WorkflowStatus
Source§fn clone(&self) -> WorkflowStatus
fn clone(&self) -> WorkflowStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkflowStatus
impl Debug for WorkflowStatus
Source§impl<'de> Deserialize<'de> for WorkflowStatus
impl<'de> Deserialize<'de> for WorkflowStatus
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 WorkflowStatus
impl PartialEq for WorkflowStatus
Source§impl Serialize for WorkflowStatus
impl Serialize for WorkflowStatus
impl Eq for WorkflowStatus
impl StructuralPartialEq for WorkflowStatus
Auto Trait Implementations§
impl Freeze for WorkflowStatus
impl RefUnwindSafe for WorkflowStatus
impl Send for WorkflowStatus
impl Sync for WorkflowStatus
impl Unpin for WorkflowStatus
impl UnsafeUnpin for WorkflowStatus
impl UnwindSafe for WorkflowStatus
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