Struct powershell_script::Output
source · [−]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
sourceimpl 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 RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more