pub enum ClientSagaStatus {
RunningForward,
Compensating,
Completed,
AbortedClean,
AbortedUncompensated,
Compensated,
BlockedRetryable,
BlockedAuthority,
CompensationFailed,
}Expand description
Durable lifecycle status of a compiled saga instance (ADR-0334).
Variants§
RunningForward
Forward execution is in progress or ready to advance.
Compensating
Reverse compensation is in progress in strict LIFO order.
Completed
Forward execution reached a terminal success branch.
AbortedClean
Forward execution aborted before any effectful step committed.
AbortedUncompensated
Forward execution explicitly transitioned to abort_uncompensated.
Compensated
All prior effectful forward steps have been compensated in reverse order.
BlockedRetryable
Step execution encountered transient contention and is waiting for backoff or manual resume.
BlockedAuthority
Step execution failed live capability/policy authorization and requires resume_saga.
CompensationFailed
A compensating command returned a non-success outcome and requires operator intervention.
Implementations§
Source§impl ClientSagaStatus
impl ClientSagaStatus
Sourcepub fn parse(value: &str) -> Option<Self>
pub fn parse(value: &str) -> Option<Self>
Parses a canonical status string returned by the service.
Sourcepub const fn is_terminal(self) -> bool
pub const fn is_terminal(self) -> bool
Whether this status is an immutable terminal state.
Sourcepub const fn is_blocked(self) -> bool
pub const fn is_blocked(self) -> bool
Whether this status is paused in a blocked or failed state.
Trait Implementations§
Source§impl Clone for ClientSagaStatus
impl Clone for ClientSagaStatus
Source§fn clone(&self) -> ClientSagaStatus
fn clone(&self) -> ClientSagaStatus
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 ClientSagaStatus
Source§impl Debug for ClientSagaStatus
impl Debug for ClientSagaStatus
impl Eq for ClientSagaStatus
Source§impl PartialEq for ClientSagaStatus
impl PartialEq for ClientSagaStatus
impl StructuralPartialEq for ClientSagaStatus
Auto Trait Implementations§
impl Freeze for ClientSagaStatus
impl RefUnwindSafe for ClientSagaStatus
impl Send for ClientSagaStatus
impl Sync for ClientSagaStatus
impl Unpin for ClientSagaStatus
impl UnsafeUnpin for ClientSagaStatus
impl UnwindSafe for ClientSagaStatus
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].