pub enum EvictionReason {
IdleExpired,
LifetimeExpired,
MaxUses,
IdleCapacity,
Capacity,
Closed,
Failed,
}Expand description
Why a pooled connection left the pool (spec 020, 3.5).
Variants§
IdleExpired
Idle longer than the policy’s idle lifetime.
LifetimeExpired
Older than the policy’s absolute lifetime.
MaxUses
Used as often as the policy allows.
IdleCapacity
More idle connections than the policy allows.
Capacity
Closed to make room for a connection under another key.
Closed
Found closed by the remote side or the connection.
Failed
The exchange on it failed or did not finish its response.
Trait Implementations§
Source§impl Clone for EvictionReason
impl Clone for EvictionReason
impl Copy for EvictionReason
Source§impl Debug for EvictionReason
impl Debug for EvictionReason
Source§impl<'de> Deserialize<'de> for EvictionReason
impl<'de> Deserialize<'de> for EvictionReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EvictionReason
Source§impl Hash for EvictionReason
impl Hash for EvictionReason
Source§impl JsonSchema for EvictionReason
impl JsonSchema for EvictionReason
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for EvictionReason
impl PartialEq for EvictionReason
Source§impl Serialize for EvictionReason
impl Serialize for EvictionReason
impl StructuralPartialEq for EvictionReason
Auto Trait Implementations§
impl Freeze for EvictionReason
impl RefUnwindSafe for EvictionReason
impl Send for EvictionReason
impl Sync for EvictionReason
impl Unpin for EvictionReason
impl UnsafeUnpin for EvictionReason
impl UnwindSafe for EvictionReason
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