pub struct RunResult {
pub exit_code: i32,
pub success: bool,
pub captured_output: Option<CapturedOutput>,
pub timed_out: bool,
}Expand description
Result of running an image.
Fields§
§exit_code: i32Exit code from the runner.
success: boolWhether the run was considered successful.
captured_output: Option<CapturedOutput>Captured stdout/stderr output (populated in test mode).
timed_out: boolWhether the run was terminated due to a timeout.
Implementations§
Source§impl RunResult
impl RunResult
Sourcepub fn with_output(self, stdout: String, stderr: String) -> Self
pub fn with_output(self, stdout: String, stderr: String) -> Self
Attach captured output to the result.
Sourcepub fn with_serial(self, serial: String) -> Self
pub fn with_serial(self, serial: String) -> Self
Attach captured serial output from an I/O handler.
Sourcepub fn with_timeout(self) -> Self
pub fn with_timeout(self) -> Self
Mark the result as timed out.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
impl UnwindSafe for RunResult
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