Trait InTerminalAuto

Source
pub trait InTerminalAuto: InTerminal
where Self: Sized,
{ // Required methods fn in_terminal(&self) -> Result<Self, DetectionError>; fn in_terminal_args<I, S>(&self, args: I) -> Result<Self, DetectionError> where I: IntoIterator<Item = S>, S: AsRef<OsStr>; }
Expand description

Allows a Command to be executed in a terminal (which is automatically detected)

Required Methods§

Source

fn in_terminal(&self) -> Result<Self, DetectionError>

Source

fn in_terminal_args<I, S>(&self, args: I) -> Result<Self, DetectionError>
where I: IntoIterator<Item = S>, S: AsRef<OsStr>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl InTerminalAuto for Command

Source§

fn in_terminal(&self) -> Result<Self, DetectionError>

Source§

fn in_terminal_args<I, S>(&self, args: I) -> Result<Self, DetectionError>
where I: IntoIterator<Item = S>, S: AsRef<OsStr>,

Implementors§