Trait InTerminal

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

Allows a Command to be executed in a terminal

Required Methods§

Source

fn in_terminal(&self, term: Terminal) -> Self

Source

fn in_terminal_args<I, S>(&self, term: Terminal, args: I) -> Self
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 InTerminal for Command

Source§

fn in_terminal(&self, term: Terminal) -> Self

Source§

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

Implementors§