pub struct SupervisorSettings {
pub worker_id: String,
pub lease_secs: i64,
pub requeue_delay_secs: i64,
pub claim_batch: i64,
pub concurrency: usize,
}Expand description
Pass configuration.
Fields§
§worker_id: StringIdentity of the worker holding the lease.
lease_secs: i64Lease duration per claim.
requeue_delay_secs: i64Retry delay after a failed evaluation.
claim_batch: i64Maximum items per pass.
concurrency: usizeConcurrent evaluations.
Trait Implementations§
Source§impl Clone for SupervisorSettings
impl Clone for SupervisorSettings
Source§fn clone(&self) -> SupervisorSettings
fn clone(&self) -> SupervisorSettings
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 SupervisorSettings
impl Debug for SupervisorSettings
impl Eq for SupervisorSettings
Source§impl PartialEq for SupervisorSettings
impl PartialEq for SupervisorSettings
impl StructuralPartialEq for SupervisorSettings
Auto Trait Implementations§
impl Freeze for SupervisorSettings
impl RefUnwindSafe for SupervisorSettings
impl Send for SupervisorSettings
impl Sync for SupervisorSettings
impl Unpin for SupervisorSettings
impl UnsafeUnpin for SupervisorSettings
impl UnwindSafe for SupervisorSettings
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