pub struct PythonRuntime { /* private fields */ }Implementations§
Source§impl PythonRuntime
impl PythonRuntime
pub fn new() -> Result<Self>
pub fn set_project_root(&mut self, root: PathBuf)
pub async fn execute_handler( &self, handler_path: &Path, context: HandlerContext, ) -> Result<HandlerResult>
pub async fn reload_module(&self, module_name: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PythonRuntime
impl !RefUnwindSafe for PythonRuntime
impl Send for PythonRuntime
impl Sync for PythonRuntime
impl Unpin for PythonRuntime
impl !UnwindSafe for PythonRuntime
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