pub struct PoolConfig {
pub addr: SocketAddr,
pub pool_size: usize,
pub connect_timeout_ms: u64,
pub tls_server_name: Option<String>,
}Expand description
Configuration for a connection pool.
Fields§
§addr: SocketAddrBackend address to connect to.
pool_size: usizeNumber of connections in the pool.
connect_timeout_ms: u64Connect timeout in milliseconds. 0 means no timeout.
tls_server_name: Option<String>TLS server name (SNI) for outbound connections. None means plain TCP.
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