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§
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