[][src]Struct mobc::State

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

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.

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

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> From<T> for T[src]

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

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.