Struct git_command::Prepare

source ·
pub struct Prepare { /* private fields */ }
Expand description

A structure to keep settings to use when invoking a command via spawn(), after creating it with prepare().

Implementations

Builder

If called, the command will not be executed directly, but with sh.

This also allows to pass shell scripts as command, or use commands that contain arguments which are subsequently parsed by sh.

Configure the process to use stdio for _stdin.

Configure the process to use stdio for stdout.

Configure the process to use stdio for _stderr.

Add arg to the list of arguments to call the command with.

Finalization

Spawn the command as configured.

Trait Implementations

Converts to this type from the input type.

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 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.