pub enum RetryOptions<'a> {
Failed(&'a BackOffJobOptions),
WithRepeat(&'a Repeat),
}Expand description
Specifies how a job should be retried after a failure or completion.
Passed to crate::Queue::retry_job.
Variants§
Failed(&'a BackOffJobOptions)
Retry a failed job using the given backoff options.
WithRepeat(&'a Repeat)
Re-enqueue a job according to a Repeat policy.
Trait Implementations§
Source§impl<'a> Clone for RetryOptions<'a>
impl<'a> Clone for RetryOptions<'a>
Source§fn clone(&self) -> RetryOptions<'a>
fn clone(&self) -> RetryOptions<'a>
Returns a duplicate 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 moreSource§impl<'a> Debug for RetryOptions<'a>
impl<'a> Debug for RetryOptions<'a>
Source§impl<'a> From<&'a BackOffJobOptions> for RetryOptions<'a>
impl<'a> From<&'a BackOffJobOptions> for RetryOptions<'a>
Source§fn from(value: &'a BackOffJobOptions) -> Self
fn from(value: &'a BackOffJobOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for RetryOptions<'a>
impl<'a> RefUnwindSafe for RetryOptions<'a>
impl<'a> Send for RetryOptions<'a>
impl<'a> Sync for RetryOptions<'a>
impl<'a> Unpin for RetryOptions<'a>
impl<'a> UnsafeUnpin for RetryOptions<'a>
impl<'a> UnwindSafe for RetryOptions<'a>
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