pub fn recv<Fd: AsFd, Buf: Buffer<u8>>(
fd: Fd,
buf: Buf,
flags: RecvFlags,
) -> Result<(Buf::Output, usize)>
Available on crate feature
net
only.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.