pub struct Output { /* private fields */ }
Expand description
A convenient wrapper around process::Output
which indicates if the
script ran successfully or not and gives easy access to both the utf-8
parsed output of stdout
or stderr
.
Implementations§
Source§impl Output
impl Output
Sourcepub fn stdout(&self) -> Option<String>
pub fn stdout(&self) -> Option<String>
Returns the parsed output of the stdout
capture of the child process
Sourcepub fn stderr(&self) -> Option<String>
pub fn stderr(&self) -> Option<String>
Returns the parsed output of the stderr
capture of the child process
Sourcepub fn into_inner(self) -> Output
pub fn into_inner(self) -> Output
Returns the raw process::Output
type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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