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§
Source§impl DBPoolOptions
impl DBPoolOptions
Trait Implementations§
Source§impl Debug for DBPoolOptions
impl Debug for DBPoolOptions
Auto Trait Implementations§
impl Freeze for DBPoolOptions
impl !RefUnwindSafe for DBPoolOptions
impl Send for DBPoolOptions
impl Sync for DBPoolOptions
impl Unpin for DBPoolOptions
impl !UnwindSafe for DBPoolOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more