pub struct PoolConfig { /* private fields */ }Expand description
Pool configuration builder.
Implementations§
Source§impl PoolConfig
impl PoolConfig
pub fn from_env() -> PoolConfig
Sourcepub fn connection(&self) -> &Config
pub fn connection(&self) -> &Config
Get connection config.
Sourcepub fn max_connection(self, value: usize) -> Self
pub fn max_connection(self, value: usize) -> Self
Set max connection.
Sourcepub fn retry_delay(&self) -> Duration
pub fn retry_delay(&self) -> Duration
Get retry delay.
Auto Trait Implementations§
impl !Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnwindSafe for PoolConfig
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