pub struct JobOptions {
pub max_attempts: u32,
pub timeout_secs: u64,
}Expand description
Per-handler options controlling retry and timeout behavior.
Fields§
§max_attempts: u32Maximum number of execution attempts before the job is marked Dead.
Defaults to 3.
timeout_secs: u64Per-execution timeout in seconds. If a handler exceeds this, the
attempt is treated as a failure. Defaults to 300 (5 min).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobOptions
impl RefUnwindSafe for JobOptions
impl Send for JobOptions
impl Sync for JobOptions
impl Unpin for JobOptions
impl UnsafeUnpin for JobOptions
impl UnwindSafe for JobOptions
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