Enum background_jobs_core::ShouldStop
source · pub enum ShouldStop {
LimitReached,
Requeue,
}
Expand description
A type that represents whether a job should be requeued
Variants
LimitReached
The job has hit the maximum allowed number of retries, and should be failed permanently
Requeue
The job is allowed to be put back into the job queue
Implementations
sourceimpl ShouldStop
impl ShouldStop
sourcepub fn should_requeue(&self) -> bool
pub fn should_requeue(&self) -> bool
A boolean representation of this state
Trait Implementations
sourceimpl Clone for ShouldStop
impl Clone for ShouldStop
sourcefn clone(&self) -> ShouldStop
fn clone(&self) -> ShouldStop
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ShouldStop
impl Debug for ShouldStop
sourceimpl PartialEq<ShouldStop> for ShouldStop
impl PartialEq<ShouldStop> for ShouldStop
sourcefn eq(&self, other: &ShouldStop) -> bool
fn eq(&self, other: &ShouldStop) -> bool
impl Eq for ShouldStop
impl StructuralEq for ShouldStop
impl StructuralPartialEq for ShouldStop
Auto Trait Implementations
impl RefUnwindSafe for ShouldStop
impl Send for ShouldStop
impl Sync for ShouldStop
impl Unpin for ShouldStop
impl UnwindSafe for ShouldStop
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more