pub struct ConnectionPoolConfig {
pub max_connections: usize,
pub timeout_millis: u64,
pub buffer_size: usize,
}Expand description
Caller-supplied connection pool sizing and resource configuration.
This type deliberately has no Default implementation: pool sizing must be
supplied by the caller, builder, or runtime so the SDK never bakes in a hidden
connection-count default.
Fields§
§max_connections: usizeMaximum number of remote connections managed by this pool.
timeout_millis: u64Per-connection operation timeout, in milliseconds.
buffer_size: usizePer-connection inbound buffer size.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionPoolConfig
impl Clone for ConnectionPoolConfig
Source§fn clone(&self) -> ConnectionPoolConfig
fn clone(&self) -> ConnectionPoolConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConnectionPoolConfig
Source§impl Debug for ConnectionPoolConfig
impl Debug for ConnectionPoolConfig
impl Eq for ConnectionPoolConfig
Source§impl PartialEq for ConnectionPoolConfig
impl PartialEq for ConnectionPoolConfig
Source§fn eq(&self, other: &ConnectionPoolConfig) -> bool
fn eq(&self, other: &ConnectionPoolConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConnectionPoolConfig
Auto Trait Implementations§
impl Freeze for ConnectionPoolConfig
impl RefUnwindSafe for ConnectionPoolConfig
impl Send for ConnectionPoolConfig
impl Sync for ConnectionPoolConfig
impl Unpin for ConnectionPoolConfig
impl UnsafeUnpin for ConnectionPoolConfig
impl UnwindSafe for ConnectionPoolConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.