pub enum PackageRuntime {
Rust,
Python,
Wasm,
}Expand description
Plugin runtime kind. Determines which loader the host’s PluginHost
dispatches to.
Variants§
Rust
Default. Plugin is a cdylib + PluginRegistry. Loaded by the existing
dylib loader in fidius-host.
Python
Plugin is a directory of .py files (+ optional vendor/) loaded by
fidius-python via an embedded interpreter. Requires the host crate
to enable the python feature.
Wasm
Plugin is a signed .wasm component (Component Model + WIT),
loaded by the WasmComponentExecutor. Reserved by FIDIUS-I-0021 Phase 1;
the loader lands in Phase 2 (until then, loading a wasm package errors
clearly rather than silently falling back to rust).
Implementations§
Trait Implementations§
Source§impl Clone for PackageRuntime
impl Clone for PackageRuntime
Source§fn clone(&self) -> PackageRuntime
fn clone(&self) -> PackageRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PackageRuntime
Source§impl Debug for PackageRuntime
impl Debug for PackageRuntime
Source§impl Display for PackageRuntime
impl Display for PackageRuntime
impl Eq for PackageRuntime
Source§impl PartialEq for PackageRuntime
impl PartialEq for PackageRuntime
Source§fn eq(&self, other: &PackageRuntime) -> bool
fn eq(&self, other: &PackageRuntime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackageRuntime
Auto Trait Implementations§
impl Freeze for PackageRuntime
impl RefUnwindSafe for PackageRuntime
impl Send for PackageRuntime
impl Sync for PackageRuntime
impl Unpin for PackageRuntime
impl UnsafeUnpin for PackageRuntime
impl UnwindSafe for PackageRuntime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.