Skip to main content

wait_readable

Function wait_readable 

Source
pub fn wait_readable(
    socket: &UdpSocket,
    timeout: Duration,
) -> Result<bool, ClockError>
Expand description

Wait until socket has data to read, or the timeout passes. Returns Ok(true) if readable, Ok(false) on timeout.