[][src]Enum mongodb::event::cmap::ConnectionClosedReason

#[non_exhaustive]pub enum ConnectionClosedReason {
    Stale,
    Idle,
    Error,
    Dropped,
    PoolClosed,
}

The reasons that a connection may be closed.

Variants (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.
Stale

The connection pool has been cleared since the connection was created.

Idle

The connection has been available for longer than max_idle_time without being used.

Error

An error occurred while using the connection.

Dropped

The connection was dropped during read or write.

PoolClosed

The pool that the connection belongs to has been closed.

Trait Implementations

impl Debug for ConnectionClosedReason[src]

impl<'de> Deserialize<'de> for ConnectionClosedReason[src]

impl PartialEq<ConnectionClosedReason> for ConnectionClosedReason[src]

impl StructuralPartialEq for ConnectionClosedReason[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,