pub struct Output {
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub status: ExitStatus,
}Expand description
Output from a command execution, including both streams and exit status.
Unlike Capture, this does not treat non-zero exit as an error.
Use this when you need to inspect stderr on failure.
Fields§
§stdout: Vec<u8>§stderr: Vec<u8>§status: ExitStatusImplementations§
Source§impl Output
impl Output
Sourcepub fn into_stdout_string(self) -> Result<String, FromUtf8Error>
pub fn into_stdout_string(self) -> Result<String, FromUtf8Error>
Sourcepub fn into_stderr_string(self) -> Result<String, FromUtf8Error>
pub fn into_stderr_string(self) -> Result<String, FromUtf8Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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