pub struct OutputString {
pub status: ExitStatus,
pub stdout: String,
pub stderr: String,
}Expand description
Captured output from an executed command.
Both standard output and standard error are captured and converted
to String using String::from_utf8_lossy.
Fields§
§status: ExitStatusThe exit status of the command.
stdout: StringThe captured standard output (stdout) as a string.
stderr: StringThe captured standard error (stderr) as a string.
Auto Trait Implementations§
impl Freeze for OutputString
impl RefUnwindSafe for OutputString
impl Send for OutputString
impl Sync for OutputString
impl Unpin for OutputString
impl UnsafeUnpin for OutputString
impl UnwindSafe for OutputString
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