#[non_exhaustive]pub enum StateKind {
Show 32 variants
StaleLease,
LeaseExpired,
LeaseRevoked,
ExecutionNotSuspended,
AlreadySuspended,
WaitpointClosed,
TargetNotSignalable,
DuplicateSignal,
ResumeConditionNotMet,
WaitpointNotPending,
PendingWaitpointExpired,
WaitpointNotOpen,
ExecutionNotTerminal,
MaxReplaysExhausted,
StreamClosed,
StaleOwnerCannotAppend,
GrantAlreadyExists,
ExecutionNotInFlow,
FlowAlreadyTerminal,
DepsNotSatisfied,
NotBlockedByDeps,
NotRunnable,
Terminal,
BudgetExceeded,
BudgetSoftExceeded,
OkAlreadyApplied,
AttemptNotStarted,
AttemptAlreadyTerminal,
ExecutionNotEligibleForAttempt,
ReplayNotAllowed,
MaxRetriesExhausted,
StreamAlreadyClosed,
}Expand description
Legal-but-surprising state sub-kinds. Per-variant semantics vary (some are benign no-ops, some are terminal). Consult the RFC-010 §10.7 classification table.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StaleLease
Lease superseded by reclaim.
LeaseExpired
Lease TTL elapsed.
LeaseRevoked
Operator revoked lease.
ExecutionNotSuspended
Already resumed/cancelled. No-op.
AlreadySuspended
Open suspension already active. No-op.
WaitpointClosed
Signal too late — waitpoint already closed.
TargetNotSignalable
Execution not suspended; no valid signal target.
DuplicateSignal
Signal already delivered (dedup).
ResumeConditionNotMet
Resume conditions not satisfied.
WaitpointNotPending
Waitpoint not in pending state.
PendingWaitpointExpired
Pending waitpoint aged out before suspension committed.
WaitpointNotOpen
Waitpoint is not in an open state.
ExecutionNotTerminal
Cannot replay non-terminal execution.
MaxReplaysExhausted
Replay limit reached.
StreamClosed
Attempt terminal; no appends.
StaleOwnerCannotAppend
Lease mismatch on stream append.
GrantAlreadyExists
Grant already issued. Skip.
ExecutionNotInFlow
Execution not in specified flow.
FlowAlreadyTerminal
Flow already in terminal state.
DepsNotSatisfied
Dependencies not yet satisfied.
NotBlockedByDeps
Not blocked by dependencies.
NotRunnable
Execution not runnable.
Terminal
Execution already terminal.
BudgetExceeded
Hard budget limit reached.
BudgetSoftExceeded
Soft budget limit reached (warning; continue).
OkAlreadyApplied
Usage seq already processed. No-op.
AttemptNotStarted
Attempt not in started state.
AttemptAlreadyTerminal
Attempt already ended. No-op.
ExecutionNotEligibleForAttempt
Wrong state for new attempt.
ReplayNotAllowed
Execution not terminal or replay limit reached.
MaxRetriesExhausted
Retry limit reached.
StreamAlreadyClosed
Already closed. No-op.
Trait Implementations§
impl Eq for StateKind
impl StructuralPartialEq for StateKind
Auto Trait Implementations§
impl Freeze for StateKind
impl RefUnwindSafe for StateKind
impl Send for StateKind
impl Sync for StateKind
impl Unpin for StateKind
impl UnsafeUnpin for StateKind
impl UnwindSafe for StateKind
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§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