Skip to main content

BackendPoolStats

Trait BackendPoolStats 

Source
pub trait BackendPoolStats {
    // Required methods
    fn active_connections(&self) -> u32;
    fn idle_connections(&self) -> u32;
    fn max_connections(&self) -> u32;
    fn pending_connections(&self) -> u32;
}
Expand description

Extension trait for backends that support connection pooling statistics.

Required Methods§

Source

fn active_connections(&self) -> u32

Returns the current number of active connections.

Source

fn idle_connections(&self) -> u32

Returns the current number of idle connections.

Source

fn max_connections(&self) -> u32

Returns the maximum pool size.

Source

fn pending_connections(&self) -> u32

Returns the number of connections waiting to be acquired.

Implementors§