pub enum WorkAttentionStatus {
Active,
Paused {
until: Option<DateTime<Utc>>,
},
Superseded,
Stopped,
}Variants§
Implementations§
Source§impl WorkAttentionStatus
impl WorkAttentionStatus
Sourcepub fn status_key(&self) -> &'static str
pub fn status_key(&self) -> &'static str
Canonical status key persisted as an indexed store column (SQL query
pushdown + the active-binding-per-target occupancy guard). Mirrors the
serde state tag vocabulary.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Terminal statuses are eligible for store pruning: no lifecycle transition leads out of them.
Trait Implementations§
Source§impl Clone for WorkAttentionStatus
impl Clone for WorkAttentionStatus
Source§fn clone(&self) -> WorkAttentionStatus
fn clone(&self) -> WorkAttentionStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkAttentionStatus
impl Debug for WorkAttentionStatus
Source§impl Default for WorkAttentionStatus
impl Default for WorkAttentionStatus
Source§fn default() -> WorkAttentionStatus
fn default() -> WorkAttentionStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkAttentionStatus
impl<'de> Deserialize<'de> for WorkAttentionStatus
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 WorkAttentionStatus
Source§impl PartialEq for WorkAttentionStatus
impl PartialEq for WorkAttentionStatus
Source§impl Serialize for WorkAttentionStatus
impl Serialize for WorkAttentionStatus
impl StructuralPartialEq for WorkAttentionStatus
Auto Trait Implementations§
impl Freeze for WorkAttentionStatus
impl RefUnwindSafe for WorkAttentionStatus
impl Send for WorkAttentionStatus
impl Sync for WorkAttentionStatus
impl Unpin for WorkAttentionStatus
impl UnsafeUnpin for WorkAttentionStatus
impl UnwindSafe for WorkAttentionStatus
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> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
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.