pub struct JobConfig {
pub timeout_secs: u32,
pub max_attempts: u32,
pub retry_on: Vec<RetryOn>,
pub backoff: Option<BackoffSpec>,
}Fields§
§timeout_secs: u32Per-handler wall-clock ceiling enforced by the worker.
max_attempts: u32Maximum delivery attempts before the job is permanently failed.
1 disables retry-on-crash.
retry_on: Vec<RetryOn>The failures retried beside a crash, which always is.
backoff: Option<BackoffSpec>The delay between attempts; 30 s doubling to an hour when unset.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobConfig
impl<'de> Deserialize<'de> for JobConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JobConfig
impl StructuralPartialEq for JobConfig
Auto Trait Implementations§
impl Freeze for JobConfig
impl RefUnwindSafe for JobConfig
impl Send for JobConfig
impl Sync for JobConfig
impl Unpin for JobConfig
impl UnsafeUnpin for JobConfig
impl UnwindSafe for JobConfig
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