pub struct PoolOptions { /* private fields */ }
Expand description
Additional options to get a connection from a pool
This is used as the argument of Pool::get_with_options
.
Implementations§
Source§impl PoolOptions
impl PoolOptions
pub fn new() -> PoolOptions
pub fn username<S>(self, username: S) -> Self
pub fn password<S>(self, password: S) -> Self
pub fn privilege(self, privilege: Privilege) -> Self
pub fn external_auth(self, enable: bool) -> Self
pub fn tag<S>(self, tag: S) -> Self
pub fn match_any_tag(self, enable: bool) -> Self
pub fn purity(self, purity: Purity) -> Self
pub fn connection_class<S>(self, connection_class: S) -> Self
Trait Implementations§
Source§impl Clone for PoolOptions
impl Clone for PoolOptions
Source§fn clone(&self) -> PoolOptions
fn clone(&self) -> PoolOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PoolOptions
impl Debug for PoolOptions
Source§impl Default for PoolOptions
impl Default for PoolOptions
Source§impl PartialEq for PoolOptions
impl PartialEq for PoolOptions
impl Eq for PoolOptions
impl StructuralPartialEq for PoolOptions
Auto Trait Implementations§
impl Freeze for PoolOptions
impl RefUnwindSafe for PoolOptions
impl Send for PoolOptions
impl Sync for PoolOptions
impl Unpin for PoolOptions
impl UnwindSafe for PoolOptions
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