Enum mongodb::event::cmap::ConnectionClosedReason [−][src]
#[non_exhaustive]
pub enum ConnectionClosedReason {
Stale,
Idle,
Error,
Dropped,
PoolClosed,
}
Expand description
The reasons that a connection may be closed.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The connection pool has been cleared since the connection was created.
The connection has been available for longer than max_idle_time
without being used.
An error occurred while using the connection.
The connection was dropped during read or write.
The pool that the connection belongs to has been closed.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for ConnectionClosedReason
impl Send for ConnectionClosedReason
impl Sync for ConnectionClosedReason
impl Unpin for ConnectionClosedReason
impl UnwindSafe for ConnectionClosedReason
Blanket Implementations
Mutably borrows from an owned value. Read more