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

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