pub enum ShellTaskOutput<T> {
    EarlyReturn {
        stdout_lines: Vec<String>,
        stderr_lines: Vec<String>,
        return_value: T,
    },
    CompleteOutput {
        status: ExitStatus,
        stdout_lines: Vec<String>,
        stderr_lines: Vec<String>,
    },
}
Expand description

ShellTaskOutput is returned by ShellTask::run and contains information about the task on completion.

Variants

EarlyReturn

Fields

stdout_lines: Vec<String>

The lines printed to stdout by the task up until the point of early return.

stderr_lines: Vec<String>

The lines printed to stderr by the task up until the point of early return.

return_value: T

The early return value.

This variant is returned when the specified log handler returns early or runs into an unrecoverable error.

CompleteOutput

Fields

status: ExitStatus

The exit status of the task.

stdout_lines: Vec<String>

The lines printed to stdout by the task.

stderr_lines: Vec<String>

The lines printed to stderr by the task.

This variant is returned when the specified log handler did not return early.

Trait Implementations

Formats the value using the given formatter. 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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. 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.