Struct rbatis_core::db::DBPoolOptions
source · [−]pub struct DBPoolOptions {
pub max_connections: u32,
pub min_connections: u32,
pub connect_timeout: Duration,
pub max_lifetime: Option<Duration>,
pub idle_timeout: Option<Duration>,
pub test_before_acquire: bool,
pub decoder: Box<dyn DataDecoder>,
}
Fields
max_connections: u32
min_connections: u32
connect_timeout: Duration
max_lifetime: Option<Duration>
idle_timeout: Option<Duration>
test_before_acquire: bool
decoder: Box<dyn DataDecoder>
Implementations
sourceimpl DBPoolOptions
impl DBPoolOptions
Trait Implementations
sourceimpl Debug for DBPoolOptions
impl Debug for DBPoolOptions
Auto Trait Implementations
impl !RefUnwindSafe for DBPoolOptions
impl Send for DBPoolOptions
impl Sync for DBPoolOptions
impl Unpin for DBPoolOptions
impl !UnwindSafe for DBPoolOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more