Struct bkt::Invocation[][src]

pub struct Invocation {
    pub stdout: Vec<u8>,
    pub stderr: Vec<u8>,
    pub status: i32,
    pub runtime: Duration,
    // some fields omitted
}
Expand description

The outputs of a cached invocation of a CommandDesc, akin to std::process::Output.

Fields

stdout: Vec<u8>

The data that the process wrote to stdout.

stderr: Vec<u8>

The data that the process wrote to stderr.

status: i32

The exit status of the program, or 126 if the program terminated without an exit status. See ExitStatus::code(). This is subject to change to better support other termination states.

runtime: Duration

The time the process took to complete.

Implementations

Helper to view stdout as a UTF-8 string. Use from_utf8 directly if you need to handle output that may not be UTF-8.

Helper to view stderr as a UTF-8 string. Use from_utf8 directly if you need to handle output that may not be UTF-8.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Performs the conversion.

Performs the conversion.

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.