pub struct WasmPluginProcessor { /* private fields */ }Expand description
WebAssembly-backed plugin instance exposed through the shared plugin API.
Implementations§
Source§impl WasmPluginProcessor
impl WasmPluginProcessor
Sourcepub fn descriptor(&self) -> &PluginDescriptor
pub fn descriptor(&self) -> &PluginDescriptor
Returns this plugin’s descriptor.
Source§impl WasmPluginProcessor
impl WasmPluginProcessor
Sourcepub fn from_bytes(wasm: &[u8]) -> Result<Self>
pub fn from_bytes(wasm: &[u8]) -> Result<Self>
Reports that the wasm runtime feature is disabled.
§Errors
Always returns an eval error because no runtime is available.
Sourcepub fn from_bytes_with_limits(
_wasm: &[u8],
_limits: WasmResourceLimits,
) -> Result<Self>
pub fn from_bytes_with_limits( _wasm: &[u8], _limits: WasmResourceLimits, ) -> Result<Self>
Reports that the wasm runtime feature is disabled.
§Errors
Always returns an eval error because no runtime is available.
Auto Trait Implementations§
impl Freeze for WasmPluginProcessor
impl RefUnwindSafe for WasmPluginProcessor
impl Send for WasmPluginProcessor
impl Sync for WasmPluginProcessor
impl Unpin for WasmPluginProcessor
impl UnsafeUnpin for WasmPluginProcessor
impl UnwindSafe for WasmPluginProcessor
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