pub enum TerminalHostMode {
Auto,
InteractiveTui,
StaticCli,
}Expand description
Terminal host operating mode distinguishing interactive PTY TUI from static/pipe CLI execution.
Variants§
Auto
Automatically selects InteractiveTui when attached to a live TTY and StaticCli when piped.
InteractiveTui
Full-screen interactive PTY terminal UI with raw input, alternate screen, and resize handling.
StaticCli
Non-interactive static/pipe CLI emitting clean stdout/stderr text and exit code without an event loop.
Trait Implementations§
Source§impl Clone for TerminalHostMode
impl Clone for TerminalHostMode
impl Copy for TerminalHostMode
Source§impl Debug for TerminalHostMode
impl Debug for TerminalHostMode
Source§impl Default for TerminalHostMode
impl Default for TerminalHostMode
impl Eq for TerminalHostMode
Source§impl Hash for TerminalHostMode
impl Hash for TerminalHostMode
Source§impl Ord for TerminalHostMode
impl Ord for TerminalHostMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TerminalHostMode
impl PartialEq for TerminalHostMode
Source§impl PartialOrd for TerminalHostMode
impl PartialOrd for TerminalHostMode
impl StructuralPartialEq for TerminalHostMode
Auto Trait Implementations§
impl Forget for TerminalHostMode
impl Freeze for TerminalHostMode
impl Move for TerminalHostMode
impl RefUnwindSafe for TerminalHostMode
impl Send for TerminalHostMode
impl Sync for TerminalHostMode
impl Unpin for TerminalHostMode
impl UnsafeUnpin for TerminalHostMode
impl UnwindSafe for TerminalHostMode
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