[][src]Function libuv::fs::misc::guess_handle

pub fn guess_handle(file: File) -> HandleType

Used to detect what type of stream should be used with a given file descriptor. Usually this will be used during initialization to guess the type of the stdio streams.

For isatty(3) equivalent functionality use this function and test for TTY.