pub(crate) fn auth(&'a self, credentials: Option<Credentials>) -> Result<(), ConnectionError> {
        if credentials.is_some() {
            self.send(AuthCommand::from(credentials.as_ref().unwrap()))
                .map_err(auth_error)?
                .wait()
                .map_err(auth_error)?;
        }

        Ok(())
    }
/// Authenticates blocking with the given credentials during client initialization
Authenticates blocking with the given credentials during client initialization
Authenticates blocking with the given credentials during client initialization
pub(crate) fn auth(&'a self, credentials: Option<Credentials>) -> Result<(), ConnectionError> {
        if credentials.is_some() {
            self.send(AuthCommand::from(credentials.as_ref().unwrap()))
                .map_err(auth_error)?
                .wait()
                .map_err(auth_error)?;
        }
        Ok(())
    }
pub ( crate ) fn auth ( & ' a self , credentials : Option < Credentials > ) -> Result < ( ) , ConnectionError > { if credentials . is_some ( ) { self . send ( AuthCommand :: from ( credentials . as_ref ( ) . unwrap ( ) ) ) . map_err ( auth_error ) ? . wait ( ) . map_err ( auth_error ) ? ; } Ok ( ( ) ) }
Authenticates blocking with the given credentials during client initialization
Authenticates blocking with the given credentials during client initialization
&'a self
credentials
Option<Credentials>
&'a self
credentials
Option<Credentials>