Skip to main content

converse

Function converse 

Source
pub async fn converse<S: AsyncRead + AsyncWrite + Unpin>(
    stream: &mut S,
    info: &CtxInfo,
) -> Result<(), CtxError>
Expand description

One connection: the handshake, then one answer per request until the caller closes it.

ยงErrors

CtxError when the connection breaks or a message is over the limit.