Skip to main content

recv_stdin

Function recv_stdin 

Source
async fn recv_stdin(socket: &UnixSeqpacket) -> Result<(Bytes, bool)>
Expand description

Receive a stdin packet into the scratch buffer of the thread, see with_scratch, and copy it out, so that a connection holds no buffer while it waits and the queued stdin only the data of the packets. Stdin is binary, null bytes are part of the data. Returns whether the packet got truncated as well.