pub struct Process {
    pub command: String,
    pub cwd: String,
    pub log_monitors: Vec<String>,
    pub name: String,
    pub onfail: Option<String>,
    pub onsucceed: Option<String>,
}
Expand description

Represents and contains a given runtime job task process.

This object contains all of the data necessary to run a given process. This data includes the process name, the command which should be executed using the current BinCommand, the directory in which to execute the command, any log monitors which should monitor the command output, as well as any actions which should be performed when the command fails or succeeds.

Fields

command: Stringcwd: Stringlog_monitors: Vec<String>name: Stringonfail: Option<String>onsucceed: Option<String>

Implementations

Constructs a new, empty Process.

Builds Process with the specified command.

Builds Process with the specified current working directory.

This directory is where command will be executed using the runtime BinCommand.

Builds Process with the specified log monitors.

Builds Process with the name of the action to execute if the command fails.

Builds Process with the name of the action to execute if the command succeeds.

Executes the process using the provided actions, context, and log monitor connections.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Compare self to key and return true if they are equal.

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

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.