Trait system_interface::io::IsTerminal
source · [−]pub trait IsTerminal {
fn is_terminal(&self) -> bool;
}Expand description
Extension for I/O handles which may or may not be terminals.
Required Methods
fn is_terminal(&self) -> bool
fn is_terminal(&self) -> bool
Test whether this output stream is attached to a terminal.
This operation is also known as isatty.
Implementations on Foreign Types
sourceimpl<'a> IsTerminal for StdinLock<'a>
impl<'a> IsTerminal for StdinLock<'a>
Implement IsTerminal for StdinLock.
fn is_terminal(&self) -> bool
sourceimpl IsTerminal for Stdout
impl IsTerminal for Stdout
Implement IsTerminal for Stdout.
fn is_terminal(&self) -> bool
sourceimpl<'a> IsTerminal for StdoutLock<'a>
impl<'a> IsTerminal for StdoutLock<'a>
Implement IsTerminal for StdoutLock.
fn is_terminal(&self) -> bool
sourceimpl IsTerminal for Stderr
impl IsTerminal for Stderr
Implement IsTerminal for Stderr.
fn is_terminal(&self) -> bool
sourceimpl<'a> IsTerminal for StderrLock<'a>
impl<'a> IsTerminal for StderrLock<'a>
Implement IsTerminal for StderrLock.
fn is_terminal(&self) -> bool
sourceimpl IsTerminal for File
impl IsTerminal for File
Implement IsTerminal for std::fs::File.
fn is_terminal(&self) -> bool
sourceimpl IsTerminal for TcpStream
impl IsTerminal for TcpStream
Implement IsTerminal for std::net::TcpStream.