pub struct CmdOutput {
pub stdout: String,
pub stderr: String,
pub status: ExitStatus,
}
Expand description
Describes the output of a command
Command output is used by shell builtins as well as shell languages to pass return state of commands or programs. This captures stdout and stderr output, as well as exit code
Fields§
§stdout: String
§stderr: String
§status: ExitStatus
Implementations§
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 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