pub struct StartJavascriptExecutionRequest {
pub vm_id: String,
pub context_id: String,
pub argv: Vec<String>,
pub argv0: Option<String>,
pub env: BTreeMap<String, String>,
pub cwd: PathBuf,
pub limits: JavascriptExecutionLimits,
pub guest_runtime: GuestRuntimeConfig,
pub inline_code: Option<String>,
pub wasm_module_bytes: Option<Arc<Vec<u8>>>,
}Fields§
§vm_id: String§context_id: String§argv: Vec<String>§argv0: Option<String>Explicit process argv[0]. Some("") is distinct from None and must be
preserved for Node child_process compatibility.
env: BTreeMap<String, String>§cwd: PathBuf§limits: JavascriptExecutionLimitsPer-execution runtime limits (see JavascriptExecutionLimits).
guest_runtime: GuestRuntimeConfigPer-execution guest-runtime config (see GuestRuntimeConfig).
inline_code: Option<String>Optional inline JavaScript code supplied by the sidecar. Eval entrypoints always execute this source directly. Module-mode file entrypoints may also use it so the isolate can evaluate the original source without re-reading through the host. CommonJS file entrypoints still go through the normal require() wrapper so Node-style globals such as __filename and __dirname are initialized correctly.
wasm_module_bytes: Option<Arc<Vec<u8>>>Optional raw WASM module bytes to expose to the runner isolate for this execution.
Trait Implementations§
Source§impl Clone for StartJavascriptExecutionRequest
impl Clone for StartJavascriptExecutionRequest
Source§fn clone(&self) -> StartJavascriptExecutionRequest
fn clone(&self) -> StartJavascriptExecutionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for StartJavascriptExecutionRequest
impl StructuralPartialEq for StartJavascriptExecutionRequest
Auto Trait Implementations§
impl Freeze for StartJavascriptExecutionRequest
impl RefUnwindSafe for StartJavascriptExecutionRequest
impl Send for StartJavascriptExecutionRequest
impl Sync for StartJavascriptExecutionRequest
impl Unpin for StartJavascriptExecutionRequest
impl UnsafeUnpin for StartJavascriptExecutionRequest
impl UnwindSafe for StartJavascriptExecutionRequest
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