pub struct JavascriptExecutionEngine { /* private fields */ }Implementations§
Source§impl JavascriptExecutionEngine
impl JavascriptExecutionEngine
pub fn create_context( &mut self, request: CreateJavascriptContextRequest, ) -> JavascriptContext
pub fn start_execution( &mut self, request: StartJavascriptExecutionRequest, ) -> Result<JavascriptExecution, JavascriptExecutionError>
Sourcepub fn start_execution_with_module_reader(
&mut self,
request: StartJavascriptExecutionRequest,
module_reader: Option<Box<dyn ModuleFsReader + Send>>,
guest_reader: Option<Box<dyn GuestModuleReader>>,
) -> Result<JavascriptExecution, JavascriptExecutionError>
pub fn start_execution_with_module_reader( &mut self, request: StartJavascriptExecutionRequest, module_reader: Option<Box<dyn ModuleFsReader + Send>>, guest_reader: Option<Box<dyn GuestModuleReader>>, ) -> Result<JavascriptExecution, JavascriptExecutionError>
Like start_execution but with an optional
read-only VFS reader over the mounted node_modules tree. When supplied,
the bridge thread resolves module-resolution RPCs inline against this
reader (off the service loop, concurrently with it) instead of routing
them through the service loop. The reader must be Send because it is
moved onto the bridge thread; it must read the same mount the guest sees.
pub fn dispose_vm(&mut self, vm_id: &str)
Trait Implementations§
Source§impl Debug for JavascriptExecutionEngine
impl Debug for JavascriptExecutionEngine
Source§impl Default for JavascriptExecutionEngine
impl Default for JavascriptExecutionEngine
Source§fn default() -> JavascriptExecutionEngine
fn default() -> JavascriptExecutionEngine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JavascriptExecutionEngine
impl RefUnwindSafe for JavascriptExecutionEngine
impl Send for JavascriptExecutionEngine
impl Sync for JavascriptExecutionEngine
impl Unpin for JavascriptExecutionEngine
impl UnsafeUnpin for JavascriptExecutionEngine
impl UnwindSafe for JavascriptExecutionEngine
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