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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more