pub struct GhOutcome {
pub label: String,
pub argv: Vec<String>,
pub exit_code: Option<i32>,
pub duration: Duration,
pub error: Option<String>,
}Expand description
The outcome of one gh subprocess invocation, recorded by
crate::github_metrics::run_gh after the process exits.
Fields§
§label: StringThe semantic subcommand label, e.g. "api graphql", "pr list". Split on
spaces into the record’s command so --command/command: queries work.
argv: Vec<String>Full argv passed to gh (without the binary path). Scrubbed before write.
exit_code: Option<i32>Process exit code; None when the process could not be spawned.
duration: DurationWall time of the subprocess.
error: Option<String>Spawn/collection error, when the invocation did not complete.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GhOutcome
impl RefUnwindSafe for GhOutcome
impl Send for GhOutcome
impl Sync for GhOutcome
impl Unpin for GhOutcome
impl UnsafeUnpin for GhOutcome
impl UnwindSafe for GhOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more