pub struct DnyResult {
pub stdout: String,
pub stderr: String,
pub exit_code: i32,
pub build_duration: Duration,
pub run_duration: Duration,
pub ok: bool,
pub system_err: SystemError,
}Available on crate feature
dyntest only.Expand description
Fields§
§stdout: String被测程序标准输出全文。
stderr: String被测程序标准错误全文(已过滤 Compiling / Finished 行)。
exit_code: i32被测程序退出码;系统级失败时为 -2,默认构造时为 -1。
build_duration: Duration编译耗时。
run_duration: Duration运行耗时。
ok: bool被测程序是否以退出码 0 正常结束。
system_err: SystemError系统级错误,无则为 SystemError::None。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DnyResult
impl RefUnwindSafe for DnyResult
impl Send for DnyResult
impl Sync for DnyResult
impl Unpin for DnyResult
impl UnsafeUnpin for DnyResult
impl UnwindSafe for DnyResult
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