Function unary_request

Source
pub async fn unary_request<I, O>(
    send: &mut SendStream,
    recv: &mut RecvStream,
    code: u32,
    input: I,
) -> Result<O>
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.