Trait sgx_tstd::io::IsTerminal
source · [−]pub trait IsTerminal: Sealed {
fn is_terminal(&self) -> bool;
}
Required Methods
sourcefn is_terminal(&self) -> bool
fn is_terminal(&self) -> bool
Returns true
if the descriptor/handle refers to a terminal/tty.
On platforms where Rust does not know how to detect a terminal yet, this will return
false
. This will also return false
if an unexpected error occurred, such as from
passing an invalid file descriptor.