pub struct QueueNackOptions {
pub delay_ms: u64,
pub error: String,
}Expand description
Options used when rejecting a leased queue job.
Fields§
§delay_ms: u64Delay before a retry can be claimed.
error: StringError message from the worker, stored as last_error on the job.
Implementations§
Trait Implementations§
Source§impl Clone for QueueNackOptions
impl Clone for QueueNackOptions
Source§fn clone(&self) -> QueueNackOptions
fn clone(&self) -> QueueNackOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueueNackOptions
impl Debug for QueueNackOptions
Source§impl Default for QueueNackOptions
impl Default for QueueNackOptions
Source§fn default() -> QueueNackOptions
fn default() -> QueueNackOptions
Returns the “default value” for a type. Read more
impl Eq for QueueNackOptions
Source§impl PartialEq for QueueNackOptions
impl PartialEq for QueueNackOptions
Source§fn eq(&self, other: &QueueNackOptions) -> bool
fn eq(&self, other: &QueueNackOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueueNackOptions
Auto Trait Implementations§
impl Freeze for QueueNackOptions
impl RefUnwindSafe for QueueNackOptions
impl Send for QueueNackOptions
impl Sync for QueueNackOptions
impl Unpin for QueueNackOptions
impl UnsafeUnpin for QueueNackOptions
impl UnwindSafe for QueueNackOptions
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