pub struct PoolConfig {
pub min_instances: usize,
pub max_instances: usize,
pub target_load: f32,
pub scale_up_threshold: f32,
pub scale_down_threshold: f32,
pub scale_cooldown: Duration,
}Expand description
Pool configuration.
Fields§
§min_instances: usizeMinimum number of instances.
max_instances: usizeMaximum number of instances.
target_load: f32Target load factor per instance (0.0-1.0).
scale_up_threshold: f32Scale up threshold (load factor).
scale_down_threshold: f32Scale down threshold (load factor).
scale_cooldown: DurationCooldown between scaling operations.
Trait Implementations§
Source§impl Clone for PoolConfig
impl Clone for PoolConfig
Source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
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 PoolConfig
impl Debug for PoolConfig
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnsafeUnpin for PoolConfig
impl UnwindSafe for PoolConfig
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