pub enum CloseMode<'a> {
Default,
Drop,
Retag(&'a str),
}
Expand description
The mode to use when closing connections to the database
Variants§
Default
The connection is returned to the connection pool for future use.
Drop
Causes the connection to be dropped from the connection pool.
Retag(&'a str)
Causes the connection to be tagged with the tag information.
An empty tag ""
will cause the tag to be cleared.
Trait Implementations§
source§impl<'a> PartialEq for CloseMode<'a>
impl<'a> PartialEq for CloseMode<'a>
impl<'a> Copy for CloseMode<'a>
impl<'a> Eq for CloseMode<'a>
impl<'a> StructuralPartialEq for CloseMode<'a>
Auto Trait Implementations§
impl<'a> Freeze for CloseMode<'a>
impl<'a> RefUnwindSafe for CloseMode<'a>
impl<'a> Send for CloseMode<'a>
impl<'a> Sync for CloseMode<'a>
impl<'a> Unpin for CloseMode<'a>
impl<'a> UnwindSafe for CloseMode<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)