pub fn recv<Fd: AsFd, Buf: Buffer<u8>>(
fd: Fd,
buf: Buf,
flags: RecvFlags,
) -> Result<(Buf::Output, usize)>Expand description
recv(fd, buf, flags)—Reads data from a socket.
In addition to the Buffer::Output return value, this also returns the
number of bytes received before any truncation due to the
RecvFlags::TRUNC flag.