pub struct WorkerConfig {
pub worker_id: String,
pub lease_secs: i64,
pub batch: usize,
pub request_timeout: Duration,
pub retry: RetryPolicy,
}Expand description
One durable worker’s bounded execution settings.
Fields§
§worker_id: StringStable worker identity used in leases.
lease_secs: i64Lease duration in seconds.
batch: usizeMaximum records claimed in one pass.
request_timeout: DurationDeadline for each single transport attempt.
retry: RetryPolicyDurable retry delay policy.
Trait Implementations§
Source§impl Clone for WorkerConfig
impl Clone for WorkerConfig
Source§fn clone(&self) -> WorkerConfig
fn clone(&self) -> WorkerConfig
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 moreAuto 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