receive_key_response

Function receive_key_response 

Source
pub async fn receive_key_response(recv: &mut RecvStream) -> Result<KeyResponse>
Expand description

Receives a key challenge response from the client

Reads the response with length prefix and deserializes it directly as a KeyResponse (no wrapper enum).

§Arguments

  • recv - Stream to receive the response from

§Returns

The parsed KeyResponse from the client