pub struct CommandExecutor<EM, I, OT, S, T, Z> where
    T: Debug,
    OT: Debug
{ /* private fields */ }
Expand description

A CommandExecutor is a wrapper around std::process::Command to execute a target as a child process. Construct a CommandExecutor by implementing CommandConfigurator for a type of your choice and calling CommandConfigurator::into_executor on it. Instead, you can use CommandExecutor::builder() to construct a CommandExecutor backed by a StdCommandConfigurator.

Implementations

Creates a builder for a new CommandExecutor, backed by a StdCommandConfigurator This is usually the easiest way to construct a CommandExecutor.

It mimics the api of Command, specifically, you will use arg, args, env, and so on.

By default, input is read from stdin, unless you specify a different location using

  • arg_input_arg for input delivered as an command line argument
  • arg_input_file for input via a file of a specific name
  • arg_input_file_std for a file with default name (at the right location in the arguments)

Accesses the inner value

Creates a new CommandExecutor. Instead of parsing the Command for @@, it will

Parses an AFL-like comandline, replacing @@ with the input file. If no @@ was found, will use stdin for input. The arg 0 is the program.

Trait Implementations

Formats the value using the given formatter. Read more

Instruct the target about the input and run

Wraps this Executor with the given ObserversTuple to implement HasObservers. Read more

Custom Reset Handler, e.g., to reset timers

Get the linked observers

Get the linked observers (mutable)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.