pub enum Outcome {
Success,
Retry,
Skip,
Revoke,
Snooze,
LeaseLost,
Undecodable,
RateLimited,
}Expand description
lifecycle state machine Exhaustive on purpose: adding a variant without handling it is a compile error, which is how a commented-out transition becomes impossible rather than silent.
Variants§
Success
Retry
Skip
Revoke
Snooze
LeaseLost
crash quarantine the worker died. Counted apart from Retry — quarantine depends on it.
Undecodable
RateLimited
surveyed policy behavior NOT a failure. Re-queues without consuming an attempt, the way BullMQ’s RateLimitError and Sidekiq’s OverLimit do. asynq makes users fake this.
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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