/// Sends the first client message in the SCRAM handshake.
Sends the first client message in the SCRAM handshake.
Sends the first client message in the SCRAM handshake .
async fn send_client_first(
        &self,
        conn: &mut Connection,
        credential: &Credential,
        server_api: Option<&ServerApi>,
    ) -> Result<FirstRound> {
        let client_first = self.build_client_first(credential, false, server_api)?;
        let command = client_first.to_command(self);
        let server_first = conn.send_command(command, None).await?;
        Ok(FirstRound {
            client_first,
            server_first: server_first.auth_response_body("SCRAM")?,
        })
    }
async fn send_client_first ( & self , conn : & mut Connection , credential : & Credential , server_api : Option < & ServerApi > , ) -> Result < FirstRound > { let client_first = self . build_client_first ( credential , false , server_api ) ? ; let command = client_first . to_command ( self ) ; let server_first = conn . send_command ( command , None ) . await ? ; Ok ( FirstRound { client_first , server_first : server_first . auth_response_body ( " " ) ? , } ) }
Sends the first client message in the SCRAM handshake.
Sends the first client message in the SCRAM handshake .
&self
conn
&mut Connection
credential
&Credential
server_api
Option<&ServerApi>