Skip to main content

exchange_within

Function exchange_within 

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

exchange that gives up after deadline.