pub struct Outcome {
pub exit: Option<i32>,
pub stdout: String,
pub stderr: String,
pub timed_out: bool,
pub truncated: bool,
pub duration: Duration,
}Expand description
What running a command produced.
Fields§
§exit: Option<i32>The exit status, or None where the process was killed and never
returned one.
stdout: StringStandard output, truncated to MAX_OUTPUT.
stderr: StringStandard error, truncated to MAX_OUTPUT.
timed_out: boolWhether it was killed for running past its timeout.
Separate from exit being None, because “we killed it at the deadline”
and “it died for some other reason” are different facts and only one of
them is the checker’s own doing.
truncated: boolWhether output was dropped to fit MAX_OUTPUT.
duration: DurationHow long it ran.
Implementations§
Trait Implementations§
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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