pub struct InboxWorkerConfig {
pub batch: usize,
pub lease: Duration,
pub concurrency: usize,
pub retry: RetryPolicy,
pub idle_poll: Duration,
}Expand description
How an InboxWorker runs.
Fields§
§batch: usizeHow many activities one claim takes.
lease: DurationHow long a claimed activity is held before another worker may take it.
concurrency: usizeListeners running at once.
retry: RetryPolicy§idle_poll: DurationThe longest the worker sleeps with nothing due.
Trait Implementations§
Source§impl Clone for InboxWorkerConfig
impl Clone for InboxWorkerConfig
Source§fn clone(&self) -> InboxWorkerConfig
fn clone(&self) -> InboxWorkerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InboxWorkerConfig
impl Debug for InboxWorkerConfig
Auto Trait Implementations§
impl Freeze for InboxWorkerConfig
impl RefUnwindSafe for InboxWorkerConfig
impl Send for InboxWorkerConfig
impl Sync for InboxWorkerConfig
impl Unpin for InboxWorkerConfig
impl UnsafeUnpin for InboxWorkerConfig
impl UnwindSafe for InboxWorkerConfig
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