#[non_exhaustive]pub enum JobState {
Requested,
Claimed(JobClaim),
Succeeded(JobCompletion),
Failed(JobFailure),
Cancelled,
}Expand description
Validated lifecycle state and its state-specific detail.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Requested
Waiting for a worker.
Claimed(JobClaim)
Held by a worker until its lease expires.
Succeeded(JobCompletion)
Completed with an activity and output representation.
Failed(JobFailure)
Ended with a bounded diagnostic.
Cancelled
Explicitly cancelled.
Implementations§
Trait Implementations§
impl Eq for JobState
impl StructuralPartialEq for JobState
Auto Trait Implementations§
impl Freeze for JobState
impl RefUnwindSafe for JobState
impl Send for JobState
impl Sync for JobState
impl Unpin for JobState
impl UnsafeUnpin for JobState
impl UnwindSafe for JobState
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