pub struct PluginIdentity {
pub name: String,
pub crate_name: String,
pub dir: PathBuf,
pub wanted: Vec<String>,
pub declared_abi: Option<u32>,
}Expand description
One installed plugin, as this crate sees it: what the store read from its manifest, and where it lives. No store, no version, no detection: data enough to load it.
Fields§
§name: StringThe name the plugin reports (pnpm) – checked against what it says about itself once loaded.
crate_name: StringFull crate name (pmpx-plugin-pnpm), for messages.
dir: PathBufIts directory in the store.
wanted: Vec<String>The files its manifest declared, which it may ask to see.
declared_abi: Option<u32>The ABI the manifest declares. Diagnostics only: what the plugin reports is the authority, and the loader has already refused one built against another major.
Trait Implementations§
Source§impl Clone for PluginIdentity
impl Clone for PluginIdentity
Source§impl Debug for PluginIdentity
impl Debug for PluginIdentity
impl Eq for PluginIdentity
Source§impl PartialEq for PluginIdentity
impl PartialEq for PluginIdentity
impl StructuralPartialEq for PluginIdentity
Auto Trait Implementations§
impl Freeze for PluginIdentity
impl RefUnwindSafe for PluginIdentity
impl Send for PluginIdentity
impl Sync for PluginIdentity
impl Unpin for PluginIdentity
impl UnsafeUnpin for PluginIdentity
impl UnwindSafe for PluginIdentity
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