pub fn with_timeout<D>(&self, timeout: D) -> Self
    where
        D: Into<Duration>,
    {
        DataSource {
            protocol: self.protocol.clone(),
            host: self.host.clone(),
            port: self.port,
            authentication: self.authentication.clone(),
            database_name: self.database_name.clone(),
            timeout: timeout.into(),
        }
    }
/// Returns a new copy of this `DataSource` but with the timeout for method
/// calls set to the given value.
Returns a new copy of this `DataSource` but with the timeout for method
calls set to the given value.
Returns a new copy of this ` DataSource ` but with the timeout for method calls set to the given value .
pub fn with_timeout<D>(&self, timeout: D) -> Self
    where
        D: Into<Duration>,
    {
        DataSource {
            protocol: self.protocol.clone(),
            host: self.host.clone(),
            port: self.port,
            authentication: self.authentication.clone(),
            database_name: self.database_name.clone(),
            timeout: timeout.into(),
        }
    }
pub fn with_timeout < D > ( & self , timeout : D ) -> Self where D : Into < Duration > , { DataSource { protocol : self . protocol . clone ( ) , host : self . host . clone ( ) , port : self . port , authentication : self . authentication . clone ( ) , database_name : self . database_name . clone ( ) , timeout : timeout . into ( ) , } }
Returns a new copy of this `DataSource` but with the timeout for method
calls set to the given value.
Returns a new copy of this ` DataSource ` but with the timeout for method calls set to the given value .
&self
timeout
D
&self
timeout
D