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.
Auto Trait Implementations§
impl RefUnwindSafe for ScriptChild
impl Send for ScriptChild
impl Sync for ScriptChild
impl Unpin for ScriptChild
impl UnwindSafe for ScriptChild
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