pub struct ScriptRunConfig { /* private fields */ }Expand description
ScriptRunConfig allows to define own configuration used to run a script.
It describes command name, its arguments needed to run a script and also a file extension typical for a given scripting language.
§Examples
Run configuration for PHP language (equivalent to ScriptingLanguage::Php):
use proc_heim::model::script::ScriptRunConfig;
use proc_heim::model::script::SCRIPT_FILE_PATH_PLACEHOLDER;
ScriptRunConfig::new("php", ["-f", SCRIPT_FILE_PATH_PLACEHOLDER], "php");
SCRIPT_FILE_PATH_PLACEHOLDER constant is used to mark that in this argument should be a path to a script file.
Before spawning a script, the placeholder will be replaced by proper file path to the script (with extension provided in file_extension argument).
Implementations§
Trait Implementations§
Source§impl Clone for ScriptRunConfig
impl Clone for ScriptRunConfig
Source§fn clone(&self) -> ScriptRunConfig
fn clone(&self) -> ScriptRunConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptRunConfig
impl Debug for ScriptRunConfig
Source§impl From<ScriptingLanguage> for ScriptRunConfig
impl From<ScriptingLanguage> for ScriptRunConfig
Source§fn from(value: ScriptingLanguage) -> Self
fn from(value: ScriptingLanguage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScriptRunConfig
impl PartialEq for ScriptRunConfig
impl Eq for ScriptRunConfig
impl StructuralPartialEq for ScriptRunConfig
Auto Trait Implementations§
impl Freeze for ScriptRunConfig
impl RefUnwindSafe for ScriptRunConfig
impl Send for ScriptRunConfig
impl Sync for ScriptRunConfig
impl Unpin for ScriptRunConfig
impl UnwindSafe for ScriptRunConfig
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