pub fn host_port(&mut self,
        host: Option<impl Into<String>>, port: Option<u16>)
        -> &mut Self
    {
        self.reset_compound();
        self.host = host.map_or_else(|| DEFAULT_HOST.into(), |h| h.into());
        self.port = port.unwrap_or(DEFAULT_PORT);
        self.initialized = true;
        self
    }
/// Initialize credentials using host/port data.
///
/// If either of host or port is `None`, they are replaced with the
/// default of `localhost` and `5656` respectively.
///
/// This will mark the builder as initialized and overwrite all the
/// credentials. However, `insecure_dev_mode`, pools sizes, and timeouts
/// are kept intact.
Initialize credentials using host/port data.

This will mark the builder as initialized and overwrite all the
credentials. However, `insecure_dev_mode`, pools sizes, and timeouts
are kept intact.
Initialize credentials using host / port data . This will mark the builder as initialized and overwrite all the credentials . However ` insecure_dev_mode ` pools sizes and timeouts are kept intact .
pub fn host_port(&mut self,
        host: Option<impl Into<String>>, port: Option<u16>)
        -> &mut Self
    {
        self.reset_compound();
        self.host = host.map_or_else(|| DEFAULT_HOST.into(), |h| h.into());
        self.port = port.unwrap_or(DEFAULT_PORT);
        self.initialized = true;
        self
    }
pub fn host_port ( & mut self , host : Option < impl Into < String > > , port : Option < u16 > ) -> & mut Self { self . reset_compound ( ) ; self . host = host . map_or_else ( | | DEFAULT_HOST . into ( ) , | h | h . into ( ) ) ; self . port = port . unwrap_or ( DEFAULT_PORT ) ; self . initialized = true ; self }
Initialize credentials using host/port data.
Initialize credentials using host / port data .
&mut self
host
Option<impl Into<String>>
port
Option<u16>