pub struct PoolStats {
pub size: i32,
pub idle: i32,
pub max_connections: i32,
}Expand description
PoolStats : Database connection pool statistics
Fields§
§size: i32Current number of connections in the pool
idle: i32Number of idle connections
max_connections: i32Maximum number of connections allowed
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PoolStats
impl<'de> Deserialize<'de> for PoolStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PoolStats
Auto Trait Implementations§
impl Freeze for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnwindSafe for PoolStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more