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