pub struct EngineTarget {
pub binary: PathBuf,
pub env: Vec<(String, String)>,
pub data_dir_env: Option<String>,
}Fields§
§binary: PathBuf§env: Vec<(String, String)>Env applied to every engine process (e.g. GENRIGHT_NO_KEYCHAIN=1).
data_dir_env: Option<String>Env var that receives the per-scenario data dir (e.g. GENRIGHT_APP_DATA).
Implementations§
Source§impl EngineTarget
impl EngineTarget
pub fn cli( &self, args: &[String], opts: &CliOptions, tracker: &Tracker, ) -> Result<CliResult>
Sourcepub fn run(
&self,
words: &str,
input: Value,
opts: &CliOptions,
tracker: &Tracker,
) -> Result<Value>
pub fn run( &self, words: &str, input: Value, opts: &CliOptions, tracker: &Tracker, ) -> Result<Value>
engine run('job status', input): words split, non-zero exit or json.error fails.
pub fn start_sidecar( &self, opts: &CliOptions, tracker: &Tracker, ) -> Result<Sidecar>
Trait Implementations§
Source§impl Clone for EngineTarget
impl Clone for EngineTarget
Auto Trait Implementations§
impl Freeze for EngineTarget
impl RefUnwindSafe for EngineTarget
impl Send for EngineTarget
impl Sync for EngineTarget
impl Unpin for EngineTarget
impl UnsafeUnpin for EngineTarget
impl UnwindSafe for EngineTarget
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