pub async fn unary_request<I, O>(
send: &mut SendStream,
recv: &mut RecvStream,
code: u32,
input: I,
) -> Result<O>where
I: Serialize,
O: DeserializeOwned,
Expand description
Sends a unary request and returns the response.
ยงErrors
Returns an error if there was a problem sending the request or receiving the response.