Enum odbc_sys::AttrCpMatch
source · #[repr(u32)]pub enum AttrCpMatch {
Strict = 0,
Relaxed = 1,
}
Expand description
Determines how a connection is chosen from a connection pool.
Possible values for CpMatch
attribute set with crate::SQLSetEnvAttr
to define which connection
attributes must match for a connection returned from the pool
Variants§
Strict = 0
Only connections that exactly match the connection options in the call and the connection attributes set by the application are reused. This is the default.
Relaxed = 1
Connections with matching connection string keywords can be used. Keywords must match, but not all connection attributes must match.
Trait Implementations§
source§impl Clone for AttrCpMatch
impl Clone for AttrCpMatch
source§fn clone(&self) -> AttrCpMatch
fn clone(&self) -> AttrCpMatch
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 AttrCpMatch
impl Debug for AttrCpMatch
source§impl Default for AttrCpMatch
impl Default for AttrCpMatch
Default matching for connections returned from the pool
source§impl From<AttrCpMatch> for Pointer
impl From<AttrCpMatch> for Pointer
source§fn from(source: AttrCpMatch) -> Pointer
fn from(source: AttrCpMatch) -> Pointer
Converts to this type from the input type.
source§impl PartialEq for AttrCpMatch
impl PartialEq for AttrCpMatch
source§fn eq(&self, other: &AttrCpMatch) -> bool
fn eq(&self, other: &AttrCpMatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AttrCpMatch
impl Eq for AttrCpMatch
impl StructuralEq for AttrCpMatch
impl StructuralPartialEq for AttrCpMatch
Auto Trait Implementations§
impl RefUnwindSafe for AttrCpMatch
impl Send for AttrCpMatch
impl Sync for AttrCpMatch
impl Unpin for AttrCpMatch
impl UnwindSafe for AttrCpMatch
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