#[non_exhaustive]pub struct CommandProbe {
pub command: String,
pub stdout: String,
pub stderr: String,
pub status: Option<i32>,
pub error: Option<String>,
}Expand description
A completed or failed command attempt, recorded in execution order.
stdout and stderr are trimmed and decoded lossily. Output from unsuccessful commands is
retained for diagnostics but cannot supply detected metadata. See the crate’s
probe contract for execution behavior.
An exit status of zero is necessary but not sufficient to supply metadata: the output must also
be nonempty and, for a version, have a recognized banner. A None status with no error can
indicate signal termination. These records describe probe attempts, not just successful matches.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.command: StringDiagnostic command string. Arguments are joined by spaces, without shell escaping.
stdout: StringCaptured standard output, empty when execution failed before collection.
stderr: StringCaptured standard error, empty when execution failed before collection.
status: Option<i32>Exit code, or None for a signal termination or execution failure.
error: Option<String>Process creation or output collection error, if any.