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§
source§impl ShouldStop
impl ShouldStop
sourcepub fn should_requeue(&self) -> bool
pub fn should_requeue(&self) -> bool
A boolean representation of this state
Trait Implementations§
source§impl Clone for ShouldStop
impl Clone for ShouldStop
source§fn clone(&self) -> ShouldStop
fn clone(&self) -> ShouldStop
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more