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

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

Returns a pair of booleans indicating whether the file descriptor is readable and/or writeable, respectively. Unlike is_file_read_write, this correctly detects whether sockets have been shutdown, partially or completely.