pub enum PoolType {
Homogeneous,
Heterogeneous,
}
Expand description
Whether a connection pool is homogeneous or heterogeneous.
Variants§
Homogeneous
The default pool type. All connections in the pool are authenticated with the username and password provided during pool creation.
Heterogeneous
Connections with different authentication contexts can be
created in the same pool. This pool type also supports
external authentication.
PoolBuilder::min_connections
and PoolBuilder::connection_increment
are ignored in this type.
Trait Implementations§
impl Copy for PoolType
impl Eq for PoolType
impl StructuralPartialEq for PoolType
Auto Trait Implementations§
impl Freeze for PoolType
impl RefUnwindSafe for PoolType
impl Send for PoolType
impl Sync for PoolType
impl Unpin for PoolType
impl UnwindSafe for PoolType
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