pub fn wait(fd: RawFd, duration: Option<Duration>) -> Result<()>
Wait until given file descriptor becomes readable, but no longer than given timeout.