#[repr(i32)]pub enum State {
Unspecified = 0,
Scheduled = 1,
Available = 2,
Running = 3,
Retryable = 4,
Completed = 5,
Archived = 6,
Cancelled = 7,
Quarantined = 8,
Undecodable = 9,
Pending = 10,
}Expand description
lifecycle state machine The state machine is a declared table, not a match with holes.
Variants§
Unspecified = 0
Scheduled = 1
scheduled_at in the future
Available = 2
ready to be admitted
Running = 3
claimed, lease held
Retryable = 4
failed, will return to AVAILABLE
Completed = 5
terminal, retained per policy
Archived = 6
terminal, inspectable, re-runnable (the DLQ)
Cancelled = 7
terminal, operator action
Quarantined = 8
crash quarantine terminal, fingerprint blocked
Undecodable = 9
payload versioning terminal, no upcast path for this schema_version
Pending = 10
durable but ineligible until explicit promotion
Implementations§
Source§impl State
impl State
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
impl Copy for State
impl Eq for State
Source§impl Ord for State
impl Ord for State
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for State
impl PartialOrd for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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