pub enum ExecutionStatus {
Running,
Completed,
Failed,
Aborted,
Canceled,
}Expand description
Terminal and in-flight status of a durable execution.
Maps one-to-one to the status column CHECK constraint
('running' | 'completed' | 'failed' | 'aborted' | 'canceled').
§Examples
use zeph_durable::ExecutionStatus;
assert_eq!(ExecutionStatus::Completed.as_str(), "completed");
assert!(ExecutionStatus::Running.is_running());
assert!(!ExecutionStatus::Failed.is_running());Variants§
Running
The execution is in flight.
Completed
The execution finished successfully.
Failed
The execution ended in an error.
Aborted
The execution was discarded (e.g. after a replay divergence or step-cap abort).
Canceled
The execution was deliberately stopped by an operator (zeph durable cancel) and must
never be reopened (INV-16′) — distinct from Aborted, which the system may re-drive.
Implementations§
Source§impl ExecutionStatus
impl ExecutionStatus
Sourcepub fn from_tag(tag: &str) -> Option<Self>
pub fn from_tag(tag: &str) -> Option<Self>
Reconstruct a status from its canonical status-column string.
Returns None for an unrecognized tag. The durable_executions.status column carries a
CHECK constraint over exactly these five values, so a None indicates schema corruption
or drift rather than a routine miss; callers should fail closed.
Sourcepub fn is_running(self) -> bool
pub fn is_running(self) -> bool
Whether the execution is still in flight (not yet in a terminal state).
Trait Implementations§
Source§impl Clone for ExecutionStatus
impl Clone for ExecutionStatus
Source§fn clone(&self) -> ExecutionStatus
fn clone(&self) -> ExecutionStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ExecutionStatus
Source§impl Debug for ExecutionStatus
impl Debug for ExecutionStatus
impl Eq for ExecutionStatus
Source§impl Hash for ExecutionStatus
impl Hash for ExecutionStatus
Source§impl PartialEq for ExecutionStatus
impl PartialEq for ExecutionStatus
Source§impl Serialize for ExecutionStatus
impl Serialize for ExecutionStatus
impl StructuralPartialEq for ExecutionStatus
Auto Trait Implementations§
impl Freeze for ExecutionStatus
impl RefUnwindSafe for ExecutionStatus
impl Send for ExecutionStatus
impl Sync for ExecutionStatus
impl Unpin for ExecutionStatus
impl UnsafeUnpin for ExecutionStatus
impl UnwindSafe for ExecutionStatus
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