pub fn max_idle_lifetime(mut self, max_idle_lifetime: Option<Duration>) -> Self {
        assert_ne!(
            max_idle_lifetime,
            Some(Duration::from_secs(0)),
            "max_idle_lifetime must be positive"
        );
        self.max_idle_lifetime = max_idle_lifetime;
        self
    }
/// Sets the maximum lifetime of connection to be idle in the pool,
/// resetting the timer when connection is used.
///
/// Expired connections may be closed lazily before reuse.
///
/// - `None` means reuse forever.
/// - Defaults to `None`.
///
/// # Panics
///
/// Panics if `max_idle_lifetime` is the zero `Duration`.
Sets the maximum lifetime of connection to be idle in the pool,
resetting the timer when connection is used.

Expired connections may be closed lazily before reuse.

`None` means reuse forever.
Defaults to `None`.
Sets the maximum lifetime of connection to be idle in the pool resetting the timer when connection is used . Expired connections may be closed lazily before reuse . ` None ` means reuse forever . Defaults to ` None ` .
pub fn max_idle_lifetime(mut self, max_idle_lifetime: Option<Duration>) -> Self {
        assert_ne!(
            max_idle_lifetime,
            Some(Duration::from_secs(0)),
            "max_idle_lifetime must be positive"
        );
        self.max_idle_lifetime = max_idle_lifetime;
        self
    }
pub fn max_idle_lifetime ( mut self , max_idle_lifetime : Option < Duration > ) -> Self { assert_ne ! ( max_idle_lifetime Some ( Duration from_secs ( 0 ) ) " " ) ; self . max_idle_lifetime = max_idle_lifetime ; self }
Sets the maximum lifetime of connection to be idle in the pool,
resetting the timer when connection is used.
Sets the maximum lifetime of connection to be idle in the pool resetting the timer when connection is used .
mut self
max_idle_lifetime
Option<Duration>
mut self
max_idle_lifetime
Option<Duration>
panics
Panics if `max_idle_lifetime` is the zero `Duration`.
Panics if ` max_idle_lifetime ` is the zero ` Duration ` .