Struct run_shell::ShellChild
source · [−]pub struct ShellChild(pub ShellChildArc);
Expand description
This wraps ShellChildArc
and provides helper functions.
Tuple Fields
0: ShellChildArc
Implementations
sourceimpl ShellChild
impl ShellChild
pub fn new(line: String, command: Command) -> Result<ShellChild, ShellError>
sourcepub fn wait(self) -> ShellResult
pub fn wait(self) -> ShellResult
Waits for termination of the process.
sourcepub fn stdout_utf8(self) -> Result<String, ShellError>
pub fn stdout_utf8(self) -> Result<String, ShellError>
Obtains stdout as utf8 string. Returns Err if it returns non-zero exit code.
Auto Trait Implementations
impl RefUnwindSafe for ShellChild
impl Send for ShellChild
impl Sync for ShellChild
impl Unpin for ShellChild
impl UnwindSafe for ShellChild
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