pub struct PoolConstraints {
pub min: usize,
pub max: usize,
}Expand description
连接池约束配置(参考 mysql 的 PoolConstraints)
Fields§
§min: usize最小连接数
max: usize最大连接数
Implementations§
Trait Implementations§
Source§impl Clone for PoolConstraints
impl Clone for PoolConstraints
Source§fn clone(&self) -> PoolConstraints
fn clone(&self) -> PoolConstraints
Returns a duplicate of the value. Read more
1.0.0 · 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 PoolConstraints
impl Debug for PoolConstraints
Auto Trait Implementations§
impl Freeze for PoolConstraints
impl RefUnwindSafe for PoolConstraints
impl Send for PoolConstraints
impl Sync for PoolConstraints
impl Unpin for PoolConstraints
impl UnwindSafe for PoolConstraints
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