pub struct Runtime { /* private fields */ }Implementations§
Source§impl Runtime
impl Runtime
pub fn new(resolver: Arc<dyn ModuleResolver>) -> Self
pub fn with_local_resolver() -> Self
pub fn loaded_count(&self) -> usize
pub fn is_loaded(&self, handle: ModuleHandle) -> bool
pub fn loaded_handles(&self) -> Vec<ModuleHandle>
Trait Implementations§
Source§impl ModuleRuntime for Runtime
impl ModuleRuntime for Runtime
fn load(&self, reference: ModuleRef) -> Result<ModuleHandle>
fn call( &self, handle: ModuleHandle, method: &str, args: &[u8], ) -> Result<Vec<u8>>
fn unload(&self, handle: ModuleHandle) -> Result<()>
fn get_usage(&self, handle: ModuleHandle) -> Option<ModuleUsage>
fn get_profile(&self, handle: ModuleHandle) -> Option<ModuleProfile>
fn reload( &self, handle: ModuleHandle, reference: ModuleRef, ) -> Result<ReloadState>
fn reload_with_config( &self, handle: ModuleHandle, reference: ModuleRef, config: ReloadConfig, ) -> Result<ReloadState>
Auto Trait Implementations§
impl !Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl !UnwindSafe for Runtime
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