pub struct TerminalInfo {
pub stdout_tty: bool,
pub stderr_tty: bool,
pub term: Option<String>,
pub no_color: bool,
pub force_color: bool,
pub width: Option<u16>,
}Expand description
Terminal metadata for debugging output issues.
Fields§
§stdout_tty: boolWhether stdout is a TTY.
stderr_tty: boolWhether stderr is a TTY.
term: Option<String>TERM environment variable value.
no_color: boolNO_COLOR environment variable present.
force_color: boolFORCE_COLOR environment variable present.
width: Option<u16>Terminal width if available.
Implementations§
Source§impl TerminalInfo
impl TerminalInfo
Trait Implementations§
Source§impl Clone for TerminalInfo
impl Clone for TerminalInfo
Source§fn clone(&self) -> TerminalInfo
fn clone(&self) -> TerminalInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerminalInfo
impl Debug for TerminalInfo
Source§impl<'de> Deserialize<'de> for TerminalInfo
impl<'de> Deserialize<'de> for TerminalInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TerminalInfo
impl RefUnwindSafe for TerminalInfo
impl Send for TerminalInfo
impl Sync for TerminalInfo
impl Unpin for TerminalInfo
impl UnsafeUnpin for TerminalInfo
impl UnwindSafe for TerminalInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more