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

pub fn is_read_write<'f, Fd: AsFd<'f>>(fd: Fd) -> Result<(bool, bool)>
Expand description

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.