pub struct RunOutput {
pub stdout: String,
pub stderr: String,
pub exit_code: i32,
}Expand description
Result of running a subprocess.
Fields§
§stdout: String§stderr: String§exit_code: i32Implementations§
Source§impl RunOutput
impl RunOutput
Sourcepub fn parse_json<T: DeserializeOwned>(&self) -> Result<T>
pub fn parse_json<T: DeserializeOwned>(&self) -> Result<T>
Parse stdout as JSON.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunOutput
impl RefUnwindSafe for RunOutput
impl Send for RunOutput
impl Sync for RunOutput
impl Unpin for RunOutput
impl UnsafeUnpin for RunOutput
impl UnwindSafe for RunOutput
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