pub fn wait_readable( socket: &UdpSocket, timeout: Duration, ) -> Result<bool, ClockError>
Wait until socket has data to read, or the timeout passes. Returns Ok(true) if readable, Ok(false) on timeout.
socket
Ok(true)
Ok(false)