I have a list of file descriptors and I want to find what all are ready to read. So far I was doing it python using below function
select.select(read_fds, [], [], 1) and it returns list of ready to read streams.
The same thing I am trying to do in Rust. I am using nix crate but there the function select only returns the number of file descriptors ready to read. Is there a way to get the list of file descriptors also?