pub enum CloseReason {
Expired,
MaxUses,
Idle,
Unhealthy,
Error,
ResetFailed,
Discarded,
PoolClosed,
}Expand description
Why a connection left the pool. The string values (CloseReason::as_str) are wire
values kept identical across every poolyglot language — do not localize them.
Variants§
Expired
max_lifetime reached (rotation).
MaxUses
max_uses reached (rotation).
Idle
Sat idle longer than max_idle_time.
Unhealthy
Failed validation.
Error
The caller’s work raised and the connection is suspect.
ResetFailed
reset() failed on release.
Discarded
The caller asked for it to be discarded.
PoolClosed
The pool was closed.
Implementations§
Trait Implementations§
Source§impl Clone for CloseReason
impl Clone for CloseReason
impl Copy for CloseReason
Source§impl Debug for CloseReason
impl Debug for CloseReason
Source§impl Display for CloseReason
impl Display for CloseReason
impl Eq for CloseReason
Source§impl Hash for CloseReason
impl Hash for CloseReason
Source§impl PartialEq for CloseReason
impl PartialEq for CloseReason
impl StructuralPartialEq for CloseReason
Auto Trait Implementations§
impl Freeze for CloseReason
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnsafeUnpin for CloseReason
impl UnwindSafe for CloseReason
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