pub struct Outcome {
pub exit_code: Option<i32>,
pub signal: Option<i32>,
pub timed_out: bool,
pub stdout: String,
pub stderr: String,
pub truncated: bool,
pub writers_may_be_alive: bool,
}Expand description
Captured output and exit status of a finished exec.
Fields§
§exit_code: Option<i32>Exit code, or None when the child died to a signal.
signal: Option<i32>Signal number that killed the child, when one did.
timed_out: boolThe daemon execution deadline fired. Absent on older daemons, which cannot distinguish deadline expiry from other signal deaths.
stdout: String§stderr: String§truncated: boolSet when either stream hit max_output_bytes and was cut. An explicit
flag rather than a sentinel string in the output: a marker inside the
bytes is indistinguishable from output that happens to contain it.
writers_may_be_alive: boolSet when the post-exit linger deadline expired with the pipes still open, meaning some grandchild is alive and may write more that nobody will see. Reported rather than hidden, because a harness that sees empty output from a command it knows produced some needs to be able to tell why.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Outcome
impl JsonSchema for Outcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more