pub struct PythonExecutionEngine { /* private fields */ }Implementations§
Source§impl PythonExecutionEngine
impl PythonExecutionEngine
pub fn new(runtime: RuntimeContext) -> Self
pub fn set_runtime_context(&mut self, runtime: RuntimeContext)
pub fn set_event_notify(&mut self, notify: Option<Arc<Notify>>)
pub fn bundled_pyodide_dist_path_for_vm( &mut self, vm_id: &str, ) -> Result<PathBuf, PythonExecutionError>
pub async fn bundled_pyodide_dist_path_for_vm_async( &mut self, vm_id: &str, runtime: &RuntimeContext, ) -> Result<PathBuf, PythonExecutionError>
pub fn create_context( &mut self, request: CreatePythonContextRequest, ) -> PythonContext
Sourcepub fn dispose_context(&mut self, context_id: &str) -> bool
pub fn dispose_context(&mut self, context_id: &str) -> bool
Dispose the Python context and its private JavaScript bridge context. Live executions retain their own bridge session and are unaffected.
pub fn start_execution( &mut self, request: StartPythonExecutionRequest, ) -> Result<PythonExecution, PythonExecutionError>
pub fn prepare_execution( &mut self, request: StartPythonExecutionRequest, ) -> Result<PythonExecution, PythonExecutionError>
pub fn start_execution_with_runtime( &mut self, request: StartPythonExecutionRequest, runtime: RuntimeContext, ) -> Result<PythonExecution, PythonExecutionError>
Sourcepub async fn start_execution_with_runtime_async(
&mut self,
request: StartPythonExecutionRequest,
runtime: RuntimeContext,
) -> Result<PythonExecution, PythonExecutionError>
pub async fn start_execution_with_runtime_async( &mut self, request: StartPythonExecutionRequest, runtime: RuntimeContext, ) -> Result<PythonExecution, PythonExecutionError>
Start Python from an async sidecar dispatch without parking a trusted Tokio worker during import-cache materialization or V8 prewarm.
pub fn dispose_vm(&mut self, vm_id: &str)
Trait Implementations§
Source§impl Debug for PythonExecutionEngine
impl Debug for PythonExecutionEngine
Auto Trait Implementations§
impl !RefUnwindSafe for PythonExecutionEngine
impl !UnwindSafe for PythonExecutionEngine
impl Freeze for PythonExecutionEngine
impl Send for PythonExecutionEngine
impl Sync for PythonExecutionEngine
impl Unpin for PythonExecutionEngine
impl UnsafeUnpin for PythonExecutionEngine
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