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

pub enum ConnectionClosedReason {
    Stale,
    Idle,
    Error,
    PoolClosed,
}

The reasons that a connection may be closed.

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.

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: 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>,