Struct deadpool_bolt::PoolConfig
source · Expand description
Pool
configuration.
Fields§
§max_size: usize
Maximum size of the Pool
.
timeouts: Timeouts
Timeouts of the Pool
.
Implementations§
source§impl PoolConfig
impl PoolConfig
sourcepub fn new(max_size: usize) -> PoolConfig
pub fn new(max_size: usize) -> PoolConfig
Creates a new PoolConfig
without any timeouts and with the provided
max_size
.
Trait Implementations§
source§impl Clone for PoolConfig
impl Clone for PoolConfig
source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
Returns a copy 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
source§impl Default for PoolConfig
impl Default for PoolConfig
source§fn default() -> PoolConfig
fn default() -> PoolConfig
Creates a new PoolConfig
with the max_size
being set to
cpu_count * 4
ignoring any logical CPUs (Hyper-Threading).