pub struct ExecResult {
pub exit_status: ExitStatus,
pub stdout: Option<Vec<u8>>,
pub stderr: Option<Vec<u8>>,
}
Expand description
Type used for exec_replacement_callback
to return mocked output and exit status.
Fields§
§exit_status: ExitStatus
The exit status the process did exit with.
stdout: Option<Vec<u8>>
The stdout output captured during sub-process execution (if any).
This must be Some
if stdout
is expected to be captured, it must
be None
if it’s expected to not be captured.
stderr: Option<Vec<u8>>
The stderr output captured during sub-process execution (if any).
This must be Some
if stderr
is expected to be captured, it must
be None
if it’s expected to not be captured.
Trait Implementations§
Source§impl Debug for ExecResult
impl Debug for ExecResult
Source§impl Default for ExecResult
impl Default for ExecResult
Source§fn default() -> ExecResult
fn default() -> ExecResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExecResult
impl RefUnwindSafe for ExecResult
impl Send for ExecResult
impl Sync for ExecResult
impl Unpin for ExecResult
impl UnwindSafe for ExecResult
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