pub struct ConnectionPoolConfig {
pub max_pool_size: usize,
pub fill_interval: u64,
pub check_interval: u64,
pub connection_max_alive: i64,
pub heartbeat_timeout: u64,
pub retake_interval: u64,
}Fields§
§max_pool_size: usize§fill_interval: u64§check_interval: u64§connection_max_alive: i64§heartbeat_timeout: u64§retake_interval: u64Trait Implementations§
Source§impl Clone for ConnectionPoolConfig
impl Clone for ConnectionPoolConfig
Source§fn clone(&self) -> ConnectionPoolConfig
fn clone(&self) -> ConnectionPoolConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionPoolConfig
impl Debug for ConnectionPoolConfig
Source§impl<'de> Deserialize<'de> for ConnectionPoolConfig
impl<'de> Deserialize<'de> for ConnectionPoolConfig
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
Source§impl RetrieveConnectionPoolConfig for ConnectionPoolConfig
impl RetrieveConnectionPoolConfig for ConnectionPoolConfig
fn max_pool_size(&self) -> usize
fn fill_interval(&self) -> u64
fn check_interval(&self) -> u64
fn connection_max_alive(&self) -> i64
fn heartbeat_timeout(&self) -> u64
fn retake_interval(&self) -> u64
Auto Trait Implementations§
impl Freeze for ConnectionPoolConfig
impl RefUnwindSafe for ConnectionPoolConfig
impl Send for ConnectionPoolConfig
impl Sync for ConnectionPoolConfig
impl Unpin for ConnectionPoolConfig
impl UnsafeUnpin for ConnectionPoolConfig
impl UnwindSafe for ConnectionPoolConfig
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