Function rustix::net::recv_uninit
source · pub fn recv_uninit<Fd: AsFd>(
fd: Fd,
buf: &mut [MaybeUninit<u8>],
flags: RecvFlags
) -> Result<(&mut [u8], &mut [MaybeUninit<u8>])>
Expand description
recv(fd, buf, flags)
—Reads data from a socket.
This is equivalent to recv
, except that it can read into uninitialized
memory. It returns the slice that was initialized by this function and the
slice that remains uninitialized.