pub struct KeyedWorkerPoolConfig {
pub max_count: Option<u16>,
pub idle_timeout: Option<Duration>,
pub max_count_per_key: Option<u16>,
}Fields§
§max_count: Option<u16>Target maximum number of workers managed by the pool.
None leaves the worker count unlimited. A finite target may be
temporarily exceeded to create a worker for a missing key.
idle_timeout: Option<Duration>§max_count_per_key: Option<u16>Maximum number of workers whose primary key is the same.
None leaves key counts unlimited. This limit is independent
of the pool-wide max_count target.
Trait Implementations§
Source§impl Clone for KeyedWorkerPoolConfig
impl Clone for KeyedWorkerPoolConfig
Source§fn clone(&self) -> KeyedWorkerPoolConfig
fn clone(&self) -> KeyedWorkerPoolConfig
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 KeyedWorkerPoolConfig
impl Debug for KeyedWorkerPoolConfig
Source§impl Default for KeyedWorkerPoolConfig
impl Default for KeyedWorkerPoolConfig
Source§fn default() -> KeyedWorkerPoolConfig
fn default() -> KeyedWorkerPoolConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KeyedWorkerPoolConfig
impl RefUnwindSafe for KeyedWorkerPoolConfig
impl Send for KeyedWorkerPoolConfig
impl Sync for KeyedWorkerPoolConfig
impl Unpin for KeyedWorkerPoolConfig
impl UnsafeUnpin for KeyedWorkerPoolConfig
impl UnwindSafe for KeyedWorkerPoolConfig
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