pub struct SubmitOptions {
pub priority: i32,
pub max_retries: Option<u32>,
pub delay: Option<Duration>,
}Expand description
Options for submitting a task.
Fields§
§priority: i32Task priority (higher = processed first).
max_retries: Option<u32>Maximum retries (overrides default).
delay: Option<Duration>Delay before task becomes visible.
Implementations§
Source§impl SubmitOptions
impl SubmitOptions
Sourcepub fn with_priority(self, priority: i32) -> Self
pub fn with_priority(self, priority: i32) -> Self
Sets task priority.
Sourcepub fn with_max_retries(self, retries: u32) -> Self
pub fn with_max_retries(self, retries: u32) -> Self
Sets max retries.
Sourcepub fn with_delay(self, delay: Duration) -> Self
pub fn with_delay(self, delay: Duration) -> Self
Sets initial delay.
Trait Implementations§
Source§impl Clone for SubmitOptions
impl Clone for SubmitOptions
Source§fn clone(&self) -> SubmitOptions
fn clone(&self) -> SubmitOptions
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 Debug for SubmitOptions
impl Debug for SubmitOptions
Source§impl Default for SubmitOptions
impl Default for SubmitOptions
Source§fn default() -> SubmitOptions
fn default() -> SubmitOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubmitOptions
impl RefUnwindSafe for SubmitOptions
impl Send for SubmitOptions
impl Sync for SubmitOptions
impl Unpin for SubmitOptions
impl UnwindSafe for SubmitOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).