pub struct WasmPluginLoader;Expand description
Loader for WASM plugins.
Implementations§
Source§impl WasmPluginLoader
impl WasmPluginLoader
Sourcepub fn load_from_bytes(
&self,
name: &str,
wasm_bytes: &[u8],
) -> Result<Box<dyn Plugin>, PluginError>
pub fn load_from_bytes( &self, name: &str, wasm_bytes: &[u8], ) -> Result<Box<dyn Plugin>, PluginError>
Load a WASM plugin from bytes.
Sourcepub fn load_from_file(
&self,
path: &Path,
) -> Result<Box<dyn Plugin>, PluginError>
pub fn load_from_file( &self, path: &Path, ) -> Result<Box<dyn Plugin>, PluginError>
Load a WASM plugin from a file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmPluginLoader
impl RefUnwindSafe for WasmPluginLoader
impl Send for WasmPluginLoader
impl Sync for WasmPluginLoader
impl Unpin for WasmPluginLoader
impl UnsafeUnpin for WasmPluginLoader
impl UnwindSafe for WasmPluginLoader
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