pub struct WorkerConfig {
pub server_url: String,
pub worker_id: String,
pub labels: Vec<String>,
pub lease_ttl: Duration,
pub poll_interval: Duration,
pub heartbeat_interval: Duration,
pub cancellation_check_interval: Duration,
pub log_batch_interval: Duration,
}Expand description
Configuration for a worker instance.
Fields§
§server_url: String§worker_id: String§labels: Vec<String>§lease_ttl: Duration§poll_interval: Duration§heartbeat_interval: Duration§cancellation_check_interval: Duration§log_batch_interval: DurationTrait 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 · 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 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