pub struct CommandExecutorBuilder { /* private fields */ }
Expand description

The builder for a default CommandExecutor that should fit most use-cases.

Implementations

Set the binary to execute This option is required.

Sets the input mode to InputLocation::Arg and uses the current arg offset as argnum. During execution, at input will be provided as argument at this position. Use Self::arg_input_file_std if you want to provide the input as a file instead.

Sets the input mode to InputLocation::File and adds the filename as arg to at the current position. Uses a default filename. Use Self::arg_input_file to specify a custom filename.

Sets the input mode to InputLocation::File and adds the filename as arg to at the current position.

Adds an argument to the program’s commandline.

Adds a range of arguments to the program’s commandline.

Adds a range of environment variables to the executed command.

Adds an environment variable to the executed command.

Sets the working directory for the child process.

If set to true, the child’s output won’t be redirecited to /dev/null. Defaults to false.

Builds the ComandExecutor

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.