pub struct CommandOutput {
pub command: String,
pub status: ExitStatus,
pub stdout: String,
pub stderr: String,
}
Expand description
Data on a command that has been executed.
Tracks the command that has been executed, its stdout, stderr and status code.
Fields§
§command: String
The command that has been executed.
status: ExitStatus
Status code of Command
.
stdout: String
Standard output of Command
.
stderr: String
Standard error of Command
.
Trait Implementations§
Source§impl Debug for CommandOutput
impl Debug for CommandOutput
Auto Trait Implementations§
impl Freeze for CommandOutput
impl RefUnwindSafe for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl UnwindSafe for CommandOutput
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