pub struct NativePluginArtifact { /* private fields */ }Expand description
One native artifact supplied by a host-owned plugin catalog or loaded registry.
The path is an internal locator. Capability selection always uses a
PluginReference, and loading verifies that the Root ABI identity matches
plugin_id exactly.
Implementations§
Source§impl NativePluginArtifact
impl NativePluginArtifact
Sourcepub fn new(
plugin_id: impl Into<String>,
path: impl Into<PathBuf>,
) -> Result<Self, PluginReferenceError>
pub fn new( plugin_id: impl Into<String>, path: impl Into<PathBuf>, ) -> Result<Self, PluginReferenceError>
Constructs a path binding. The caller must verify the artifact before loading it.
Use PluginRegistry::native_artifact to reuse an already loaded instance.
pub fn plugin_id(&self) -> &str
pub fn path(&self) -> &Path
Trait Implementations§
Source§impl Clone for NativePluginArtifact
impl Clone for NativePluginArtifact
Source§fn clone(&self) -> NativePluginArtifact
fn clone(&self) -> NativePluginArtifact
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 moreSource§impl Debug for NativePluginArtifact
impl Debug for NativePluginArtifact
impl Eq for NativePluginArtifact
Auto Trait Implementations§
impl !RefUnwindSafe for NativePluginArtifact
impl !UnwindSafe for NativePluginArtifact
impl Freeze for NativePluginArtifact
impl Send for NativePluginArtifact
impl Sync for NativePluginArtifact
impl Unpin for NativePluginArtifact
impl UnsafeUnpin for NativePluginArtifact
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.