pub enum CloseMode {
Default,
Force,
}
Expand description
The mode to use when closing pools
See Pool::close
.
Variants§
Default
If there are any active connections in the pool an error is returned.
Force
Causes all of the active connections in the pool to be closed before closing the pool itself.
Trait Implementations§
impl Copy for CloseMode
impl Eq for CloseMode
impl StructuralPartialEq for CloseMode
Auto Trait Implementations§
impl Freeze for CloseMode
impl RefUnwindSafe for CloseMode
impl Send for CloseMode
impl Sync for CloseMode
impl Unpin for CloseMode
impl UnwindSafe for CloseMode
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