pub fn parse_client_key_method_2(
buf: &[u8],
) -> Result<Option<(ClientKeyMethod2, usize)>>Expand description
Parse a client key-method-2 message.
Ok(Some((msg, consumed)))— a whole message was read.Ok(None)— the buffer is a prefix of one; wait for more control packets.Err(_)— the bytes cannot be a key-method-2 message at all.