#[non_exhaustive]pub enum WorkflowStatus {
Show 13 variants
Pending,
Running,
Sleeping,
Waiting,
Completed,
Failed,
Compensating,
Compensated,
Retired,
CancelledByOperator,
BlockedMissingVersion,
BlockedSignatureMismatch,
BlockedMissingHandler,
}Expand description
Workflow execution status. Blocked variants are non-terminal.
Compensating is non-terminal — the run is actively unwinding completed
steps. Compensated, Retired, and CancelledByOperator are terminal:
they each describe a distinct end state that callers must be able to
distinguish from a generic Failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Pending
Running
Sleeping
Waiting
Completed
Failed
Compensating
Compensation is running (reverse-order rollback of completed steps).
Non-terminal — the run will transition to Compensated (or Failed
if a handler errored).
Compensated
Compensation finished successfully; the run is rolled back and done.
Retired
Operator marked the run as unresumable (e.g., schema drift after a failed deploy). Terminal — manual intervention required to re-run.
CancelledByOperator
Operator force-aborted the run. Terminal — distinct from Failed
because the cause was external, not the workflow itself.
BlockedMissingVersion
BlockedSignatureMismatch
BlockedMissingHandler
Implementations§
Source§impl WorkflowStatus
impl WorkflowStatus
pub fn as_str(&self) -> &'static str
pub fn is_terminal(&self) -> bool
pub fn is_blocked(&self) -> bool
Trait Implementations§
Source§impl Clone for WorkflowStatus
impl Clone for WorkflowStatus
Source§fn clone(&self) -> WorkflowStatus
fn clone(&self) -> WorkflowStatus
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 WorkflowStatus
impl Debug for WorkflowStatus
Source§impl FromStr for WorkflowStatus
impl FromStr for WorkflowStatus
Source§impl PartialEq for WorkflowStatus
impl PartialEq for WorkflowStatus
Source§fn eq(&self, other: &WorkflowStatus) -> bool
fn eq(&self, other: &WorkflowStatus) -> bool
self and other values to be equal, and is used by ==.impl Copy 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
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