pub struct ShellChild(pub ShellChildArc);
Expand description
This wraps ShellChildArc
and provides helper functions.
Tuple Fields§
§0: ShellChildArc
Implementations§
Source§impl 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 Freeze for ShellChild
impl RefUnwindSafe for ShellChild
impl Send for ShellChild
impl Sync for ShellChild
impl Unpin for ShellChild
impl UnwindSafe for ShellChild
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