Struct mobc::State[][src]

pub struct State {
    pub max_open: u64,
    pub connections: u64,
    pub in_use: u64,
    pub idle: u64,
    pub wait_count: u64,
    pub wait_duration: Duration,
    pub max_idle_closed: u64,
    pub max_lifetime_closed: u64,
}
Expand description

Information about the state of a Pool.

Fields

max_open: u64

Maximum number of open connections to the database

connections: u64

The number of established connections both in use and idle.

in_use: u64

The number of connections currently in use.

idle: u64

The number of idle connections.

wait_count: u64

The total number of connections waited for.

wait_duration: Duration

The total time blocked waiting for a new connection.

max_idle_closed: u64

The total number of connections closed due to max_idle.

max_lifetime_closed: u64

The total number of connections closed due to max_lifetime.

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

Performs the conversion.

Performs the conversion.

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.