pub struct PythonExecutor;
Implementations§
Source§impl PythonExecutor
impl PythonExecutor
pub(crate) fn exec_py( file: &str, params_value: &Value, callback_name: &str, schema: Option<&Value>, venv_path: Option<&str>, ) -> Result<Value, BifError>
fn setup_venv(venv_path: &str) -> Result<(), BifError>
fn prepare_python_params<'py>( py: Python<'py>, params_value: &Value, ) -> PyResult<Py<PyAny>>
fn setup_python_path(py: Python<'_>, file: &str) -> PyResult<()>
fn execute_python_callback<'py>( py: Python<'py>, file: &str, callback_name: &str, params: Py<PyAny>, schema: Option<&Value>, ) -> PyResult<Value>
fn extract_module_name(file: &str) -> PyResult<String>
fn convert_python_result_to_json<'py>( py: Python<'py>, result: Py<PyAny>, ) -> PyResult<Value>
Auto Trait Implementations§
impl Freeze for PythonExecutor
impl RefUnwindSafe for PythonExecutor
impl Send for PythonExecutor
impl Sync for PythonExecutor
impl Unpin for PythonExecutor
impl UnwindSafe for PythonExecutor
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