[][src]Struct stdbench::command::ExtCommand

pub struct ExtCommand { /* fields omitted */ }

Extension of Command.

Methods

impl ExtCommand[src]

pub fn new<S: AsRef<OsStr>>(program: S) -> Self[src]

Constructs a new verbose command.

pub fn from(command: Command) -> Self[src]

Constructs a new verbose command from the argument.

pub fn arg<S: AsRef<OsStr>>(self, arg: S) -> Self[src]

Adds a single argument.

pub fn args<I, S>(self, args: I) -> Self where
    I: IntoIterator<Item = S>,
    S: AsRef<OsStr>, 
[src]

Adds a sequence of arguments.

pub fn current_dir<P: AsRef<Path>>(self, dir: P) -> Self[src]

Changes the directory from which the command will be executed.

pub fn output(self) -> Result<Output, Error>[src]

Executes the command and waits for the output.

pub fn status(self) -> Result<ExitStatus, Error>[src]

Executes the command and waits for the output.

pub fn stdin<T: Into<Stdio>>(self, cfg: T) -> Self[src]

Configuration for the child process's standard input (stdin) handle.

pub fn pipe_command(self, command: Self) -> Self[src]

Pipe another command.

pub fn pipe_new<S: AsRef<OsStr>>(self, program: S) -> Self[src]

Pipe another command.

pub fn mute(self) -> Self[src]

Turn off automatic printing.

Trait Implementations

impl From<Command> for ExtCommand[src]

impl Display for ExtCommand[src]

Auto Trait Implementations

impl !Sync for ExtCommand

impl Send for ExtCommand

impl Unpin for ExtCommand

impl !UnwindSafe for ExtCommand

impl !RefUnwindSafe for ExtCommand

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]