Struct rust_shell::ShellChild
source · 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.