pub enum JobPhase {
Pending,
Gated,
Ready,
Running,
Succeeded,
Failed {
attempts: u32,
},
Retrying {
until_ms: i64,
},
Skipped(SkipReason),
Deadlettered,
WaitingForOperator,
}Expand description
FSM phase a Job inhabits. See theory/SHIGOTO.md §III.3 for the
transition table.
kind() (variant → stable kebab-case string) + variant predicates
(is_pending, is_gated, …) auto-generated via gen-platform
derives.
Variants§
Pending
Gated
Ready
Running
Succeeded
Failed
Retrying
Skipped(SkipReason)
Deadlettered
WaitingForOperator
Implementations§
Source§impl JobPhase
impl JobPhase
pub const fn is_pending(&self) -> bool
pub const fn is_gated(&self) -> bool
pub const fn is_ready(&self) -> bool
pub const fn is_running(&self) -> bool
pub const fn is_succeeded(&self) -> bool
pub const fn is_failed(&self) -> bool
pub const fn is_retrying(&self) -> bool
pub const fn is_skipped(&self) -> bool
pub const fn is_deadlettered(&self) -> bool
pub const fn is_waiting_for_operator(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobPhase
impl<'de> Deserialize<'de> for JobPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JobPhase
impl StructuralPartialEq for JobPhase
Auto Trait Implementations§
impl Freeze for JobPhase
impl RefUnwindSafe for JobPhase
impl Send for JobPhase
impl Sync for JobPhase
impl Unpin for JobPhase
impl UnsafeUnpin for JobPhase
impl UnwindSafe for JobPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.