Skip to main content

sasl_response

Function sasl_response 

Source
pub fn sasl_response(data: &[u8], buf: &mut BytesMut) -> Result<()>
Expand description

Writes a SASL response message.

Used to continue SASL authentication exchange. Sent in response to AuthenticationSaslContinue messages.

§Arguments

  • data - Client response data for this authentication step
  • buf - Buffer to write the message to

§Errors

Currently infallible — always returns Ok(()). The io::Result return type is preserved for forward compatibility.

§Panics

Panics via msg_len if data.len() exceeds i32::MAX bytes.