pub enum JobState {
Pending {
due_ms: i64,
},
Leased {
token: u64,
until_ms: i64,
next_due_ms: Option<i64>,
},
Done,
Failed {
error: String,
},
}Expand description
Where one run’s job stands. Pending waits for due_ms; Leased is
held until until_ms, with next_due_ms from an enqueue during the
lease; Done and Failed end it until the next enqueue.
Variants§
Trait Implementations§
impl Eq for JobState
impl StructuralPartialEq for JobState
Auto Trait Implementations§
impl Forget for JobState
impl Freeze for JobState
impl Move for JobState
impl RefUnwindSafe for JobState
impl Send for JobStatewhere
RawVecInner: Send,
impl Sync for JobStatewhere
RawVecInner: Sync,
impl Unpin for JobState
impl UnsafeUnpin for JobState
impl UnwindSafe for JobStatewhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.