pub struct JobConfig {
pub timeout_secs: u32,
pub max_attempts: u32,
}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.
Implementations§
Source§impl JobConfig
impl JobConfig
pub const DEFAULT_TIMEOUT_SECS: u32 = 600
pub const DEFAULT_MAX_ATTEMPTS: u32 = 3
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