[][src]Function posish::io::is_read_write

pub fn is_read_write<Fd: AsRawFd>(fd: &Fd) -> Result<(bool, bool)>

fcntl(fd, F_GETFL) & O_ACCMODE. Returns a pair of booleans indicating whether the file descriptor is readable and/or writeable, respectively.