hyper_client_pool/config.rs
1use std::time::Duration;
2
3#[derive(Clone)]
4/// Configuration for [`pool::Pool`].
5pub struct Config {
6 /// How long to keep a connection alive before timing out
7 pub keep_alive_timeout: Duration,
8
9 /// Transaction timeout (in seconds)
10 pub transaction_timeout: Duration,
11
12 /// Number of DNS threads per worker
13 pub dns_threads_per_worker: usize,
14
15 /// Max transactions per worker spawned
16 pub max_transactions_per_worker: usize,
17
18 /// Number of workers in the pool
19 pub workers: usize,
20}