Skip to main content

exchange

Function exchange 

Source
pub async fn exchange<W, R>(
    to: &mut W,
    from: &mut R,
    req: &IconRequest,
) -> Result<Vec<u8>, IconError>
where W: AsyncWrite + Unpin, R: AsyncRead + AsyncBufRead + Unpin,
Expand description

Send req and read the answer. A helper-reported error leaves the helper usable.