pub struct PoolOpts {
pub connect_timeout: Duration,
pub idle_timeout: Duration,
}Expand description
Configuration for the upstream connection pool.
Controls timeouts for establishing new connections and keeping idle connections alive.
Fields§
§connect_timeout: DurationMaximum time to wait when establishing a new connection.
idle_timeout: DurationHow long to keep idle connections open before closing them.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolOpts
impl RefUnwindSafe for PoolOpts
impl Send for PoolOpts
impl Sync for PoolOpts
impl Unpin for PoolOpts
impl UnsafeUnpin for PoolOpts
impl UnwindSafe for PoolOpts
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