pub enum QueueContractOutcome {
StartedRunning,
WaitingStreamed,
QueuedNotStarted,
TimedOutQueued,
CancelledBeforeStart,
FailedBeforeAdmission {
reason: String,
},
}Expand description
The resolved queue-contract outcome.
Variants§
StartedRunning
Admitted immediately and running.
WaitingStreamed
Was queued, then started while we waited (streaming).
QueuedNotStarted
Queued and returned with an explicit not-started state (reattachable).
TimedOutQueued
Queued, but the wait timed out — returned reattachable not-started.
CancelledBeforeStart
Cancelled before it started.
FailedBeforeAdmission
Rejected before admission — no job ever started.
Implementations§
Source§impl QueueContractOutcome
impl QueueContractOutcome
Sourcepub const fn start_state(&self) -> StartState
pub const fn start_state(&self) -> StartState
The definite start state for this outcome.
Trait Implementations§
Source§impl Clone for QueueContractOutcome
impl Clone for QueueContractOutcome
Source§impl Debug for QueueContractOutcome
impl Debug for QueueContractOutcome
Source§impl<'de> Deserialize<'de> for QueueContractOutcome
impl<'de> Deserialize<'de> for QueueContractOutcome
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 QueueContractOutcome
Source§impl PartialEq for QueueContractOutcome
impl PartialEq for QueueContractOutcome
Source§impl Serialize for QueueContractOutcome
impl Serialize for QueueContractOutcome
impl StructuralPartialEq for QueueContractOutcome
Auto Trait Implementations§
impl Freeze for QueueContractOutcome
impl RefUnwindSafe for QueueContractOutcome
impl Send for QueueContractOutcome
impl Sync for QueueContractOutcome
impl Unpin for QueueContractOutcome
impl UnsafeUnpin for QueueContractOutcome
impl UnwindSafe for QueueContractOutcome
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.