pub fn set_recv_buffer(
socket: &UdpSocket,
requested: usize,
) -> Result<RecvBuffer>Expand description
Size a stream socket’s receive buffer and report what the kernel granted.
The caller decides what a shortfall means; RecvBuffer::is_short and
RecvBuffer::limit_hint say whether to warn and what to raise.