Function rustix::io::is_read_write
pub fn is_read_write<Fd: AsFd>(fd: &Fd) -> io::Result<(bool, bool)>
Documentation
Returns a pair of booleans indicating whether the file descriptor is readable and/or writable, respectively.
Unlike is_file_read_write
, this correctly detects whether sockets
have been shutdown, partially or completely.