Struct l337::Config [−][src]
pub struct Config { /* fields omitted */ }
Expand description
Configuration for the connection pool
Implementations
impl Config
[src]
impl Config
[src]pub fn connection_timeout(self, timeout: Duration) -> Self
[src]
pub fn connection_timeout(self, timeout: Duration) -> Self
[src]Set timeout period for starting up a new connection. If it takes longer than the specified time to wait for a connection to become available, it will fail.
By default, there is no timeout limit on getting a new connection.
pub fn test_on_check_out(self, test_on_check_out: bool) -> Self
[src]
pub fn test_on_check_out(self, test_on_check_out: bool) -> Self
[src]If true, the health of a connection will be verified via a call to
ConnectionManager::is_valid
before it is checked out of the pool.
Defaults to true.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]