Skip to main content

client_auth_handshake

Function client_auth_handshake 

Source
pub async fn client_auth_handshake<S>(
    stream: &mut S,
    username: &str,
    password: &str,
) -> Result<(), ProtocolError>
where S: AsyncRead + AsyncWrite + Unpin,
Expand description

Perform the client-side auth handshake: send credentials, read response.