pub struct WorkerConfig {
pub concurrency: usize,
pub max_retries: u32,
pub retry_base_delay: Duration,
pub retry_max_delay: Duration,
pub retry_factor: f64,
pub visibility_timeout: Duration,
pub poll_interval: Duration,
}Expand description
Configuration for the worker pool.
Fields§
§concurrency: usizeMaximum concurrent job handlers (default: one per logical CPU).
max_retries: u32Maximum number of retry attempts (0 = no retries).
retry_base_delay: DurationBase delay for exponential backoff between retries.
retry_max_delay: DurationMaximum delay cap for retry backoff.
retry_factor: f64Backoff multiplier.
visibility_timeout: DurationVisibility timeout for in-progress jobs.
poll_interval: DurationPolling interval when a queue is empty.
Trait Implementations§
Source§impl Clone for WorkerConfig
impl Clone for WorkerConfig
Source§impl Debug for WorkerConfig
impl Debug for WorkerConfig
Auto Trait Implementations§
impl Freeze for WorkerConfig
impl RefUnwindSafe for WorkerConfig
impl Send for WorkerConfig
impl Sync for WorkerConfig
impl Unpin for WorkerConfig
impl UnsafeUnpin for WorkerConfig
impl UnwindSafe for WorkerConfig
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