Struct oro_script::ScriptChild
source · pub struct ScriptChild {
pub stdin: Option<ChildStdin>,
pub stdout: Option<ChildStdout>,
pub stderr: Option<ChildStderr>,
/* private fields */
}
Expand description
Child process executing a script.
Fields§
§stdin: Option<ChildStdin>
§stdout: Option<ChildStdout>
§stderr: Option<ChildStderr>
Implementations§
source§impl ScriptChild
impl ScriptChild
sourcepub fn kill(self) -> Result<(), OroScriptError>
pub fn kill(self) -> Result<(), OroScriptError>
Forces the script process to exit.
sourcepub fn wait(self) -> Result<(), OroScriptError>
pub fn wait(self) -> Result<(), OroScriptError>
Waits for the script to exit completely. If the script exits with a
non-zero status, OroScriptError::ScriptError
is returned.