pub struct Config {
pub keep_alive_timeout: Duration,
pub transaction_timeout: Duration,
pub dns_threads_per_worker: usize,
pub max_transactions_per_worker: usize,
pub workers: usize,
}Expand description
Configuration for [pool::Pool].
Fields§
§keep_alive_timeout: DurationHow long to keep a connection alive before timing out
transaction_timeout: DurationTransaction timeout (in seconds)
dns_threads_per_worker: usizeNumber of DNS threads per worker
max_transactions_per_worker: usizeMax transactions per worker spawned
workers: usizeNumber of workers in the pool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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