pub struct WasmPlugin {
pub plugin_actor: String,
/* private fields */
}Fields§
§plugin_actor: StringImplementations§
Source§impl WasmPlugin
impl WasmPlugin
Sourcepub fn from_file<P: AsRef<Path>>(
path: P,
opts: WasmPluginRuntimeOptions,
) -> Result<Self, PluginError>
pub fn from_file<P: AsRef<Path>>( path: P, opts: WasmPluginRuntimeOptions, ) -> Result<Self, PluginError>
Compile and instantiate a WASM plugin from a file path.
pub fn from_bytes( wasm: &[u8], opts: WasmPluginRuntimeOptions, ) -> Result<Self, PluginError>
Auto Trait Implementations§
impl !RefUnwindSafe for WasmPlugin
impl !UnwindSafe for WasmPlugin
impl Freeze for WasmPlugin
impl Send for WasmPlugin
impl Sync for WasmPlugin
impl Unpin for WasmPlugin
impl UnsafeUnpin for WasmPlugin
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more