pub struct WorkerPoolConfig {
pub heartbeat_timeout: Duration,
pub health_check_interval: Duration,
pub max_unhealthy_duration: Duration,
pub min_workers: usize,
pub max_workers: usize,
}Expand description
Worker pool configuration.
Fields§
§heartbeat_timeout: DurationHeartbeat timeout duration
health_check_interval: DurationHealth check interval
max_unhealthy_duration: DurationMaximum unhealthy duration before removal
min_workers: usizeMinimum workers required
max_workers: usizeMaximum workers allowed
Trait Implementations§
Source§impl Clone for WorkerPoolConfig
impl Clone for WorkerPoolConfig
Source§fn clone(&self) -> WorkerPoolConfig
fn clone(&self) -> WorkerPoolConfig
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 WorkerPoolConfig
impl Debug for WorkerPoolConfig
Source§impl Default for WorkerPoolConfig
impl Default for WorkerPoolConfig
Source§impl<'de> Deserialize<'de> for WorkerPoolConfig
impl<'de> Deserialize<'de> for WorkerPoolConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WorkerPoolConfig
impl RefUnwindSafe for WorkerPoolConfig
impl Send for WorkerPoolConfig
impl Sync for WorkerPoolConfig
impl Unpin for WorkerPoolConfig
impl UnsafeUnpin for WorkerPoolConfig
impl UnwindSafe for WorkerPoolConfig
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