pub struct ProcessOutput {
pub return_code: i64,
pub stderr: Vec<u8>,
pub stdout: Vec<u8>,
}Expand description
A struct to contain the results of a shell process.
Fields§
§return_code: i64The return code from a process.
stderr: Vec<u8>The stderr text output of a process.
stdout: Vec<u8>The stdout text output of a process.
Implementations§
Source§impl ProcessOutput
impl ProcessOutput
Sourcepub fn return_code(&self) -> i64
pub fn return_code(&self) -> i64
The return code with which a process ended.
Sourcepub fn stdout_str(&self) -> &str
pub fn stdout_str(&self) -> &str
The stdout text output of a process, as a &str.
Sourcepub fn stderr_str(&self) -> &str
pub fn stderr_str(&self) -> &str
The stderr text output of a process, as a &str.
Auto Trait Implementations§
impl Freeze for ProcessOutput
impl RefUnwindSafe for ProcessOutput
impl Send for ProcessOutput
impl Sync for ProcessOutput
impl Unpin for ProcessOutput
impl UnsafeUnpin for ProcessOutput
impl UnwindSafe for ProcessOutput
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