Skip to main content

pump

Function pump 

Source
pub async fn pump<R, W>(input: R, output: W)
where R: AsyncRead + Unpin, W: AsyncWrite + Unpin,
Expand description

Read framed messages from input and write the usable ones, re-framed, to output. Returns when input ends or loses its framing. Dropping output then ends the server’s input.