pub enum Pooler {
Direct,
PgBouncerTransaction,
}Expand description
What sits between a pool and Postgres.
Variants§
Direct
PgBouncerTransaction
PgBouncer in pool_mode=transaction: a server connection is held
only for the length of a transaction, so no session state may be
relied on across statements, and startup parameters are refused.
Implementations§
Trait Implementations§
impl Copy for Pooler
impl Eq for Pooler
impl StructuralPartialEq for Pooler
Auto Trait Implementations§
impl Forget for Pooler
impl Freeze for Pooler
impl RefUnwindSafe for Pooler
impl Send for Pooler
impl Sync for Pooler
impl Unpin for Pooler
impl UnsafeUnpin for Pooler
impl UnwindSafe for Pooler
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