fn connect(&self) -> Result<Connection> {
        self.client.get_connection()
            .map_err(|e| e.into())
            .and_then(|c| {
                c.set_read_timeout(Some(Duration::from_millis(10_000)))?;
                c.set_write_timeout(Some(Duration::from_millis(10_000)))?;
                Ok(c)
            })
    }
/// Returns a connection with configured read and write timeouts.
Returns a connection with configured read and write timeouts.
Returns a connection with configured read and write timeouts .
fn connect(&self) -> Result<Connection> {
        self.client.get_connection()
            .map_err(|e| e.into())
            .and_then(|c| {
                c.set_read_timeout(Some(Duration::from_millis(10_000)))?;
                c.set_write_timeout(Some(Duration::from_millis(10_000)))?;
                Ok(c)
            })
    }
fn connect ( & self ) -> Result < Connection > { self . client . get_connection ( ) . map_err ( | e | e . into ( ) ) . and_then ( | c | { c . set_read_timeout ( Some ( Duration :: from_millis ( 10_000 ) ) ) ? ; c . set_write_timeout ( Some ( Duration :: from_millis ( 10_000 ) ) ) ? ; Ok ( c ) } ) }
Returns a connection with configured read and write timeouts.
Returns a connection with configured read and write timeouts .
&self