Function base::sys::linux::poll_in

source ·
pub fn poll_in<F: AsRawDescriptor>(fd: &F) -> bool
Expand description

Utility function that returns true if the given FD is readable without blocking.

On an error, such as an invalid or incompatible FD, this will return false, which can not be distinguished from a non-ready to read FD.