pub struct CmdOutput {
pub code: i32,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}Expand description
Output captured from a command invocation.
Fields§
§code: i32§stdout: Vec<u8>§stderr: Vec<u8>Implementations§
Source§impl CmdOutput
impl CmdOutput
pub fn success(&self) -> bool
pub fn stdout_text(&self) -> String
pub fn stderr_text(&self) -> String
Sourcepub fn into_output(self) -> Output
pub fn into_output(self) -> Output
Convert to std::process::Output for integration with assertion APIs
that expect process output semantics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmdOutput
impl RefUnwindSafe for CmdOutput
impl Send for CmdOutput
impl Sync for CmdOutput
impl Unpin for CmdOutput
impl UnsafeUnpin for CmdOutput
impl UnwindSafe for CmdOutput
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