pub enum TimeoutType {
    Wait,
    Create,
    Recycle,
}
Expand description

When Pool::get returns a timeout error this enum can be used to figure out which step caused the timeout.

Variants

Wait

The timeout happened while waiting for a slot to become available

Create

The timeout happened while creating the object

Recycle

The timeout happened while recycling an object

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.