pub struct LoadedPlugin {
pub manifest: PluginManifest,
pub root_dir: PathBuf,
pub namespace: String,
pub source: PluginSource,
pub components: ResolvedComponents,
}Expand description
A plugin that successfully passed manifest validation and platform/version
gating. components is already resolved to absolute paths under root_dir.
Fields§
§manifest: PluginManifestParsed manifest.
root_dir: PathBufAbsolute path to the plugin directory.
namespace: StringNamespace string — always == manifest.name. Kept separately for
quick access by overlays.
source: PluginSourceSource root the plugin was discovered in.
components: ResolvedComponentsComponent paths resolved against root_dir.
Implementations§
Source§impl LoadedPlugin
impl LoadedPlugin
Sourcepub fn namespace_item(&self, bare: &str) -> String
pub fn namespace_item(&self, bare: &str) -> String
Compose <namespace>:<bare> for a discovered item.
Trait Implementations§
Source§impl Clone for LoadedPlugin
impl Clone for LoadedPlugin
Source§fn clone(&self) -> LoadedPlugin
fn clone(&self) -> LoadedPlugin
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 moreAuto Trait Implementations§
impl Freeze for LoadedPlugin
impl RefUnwindSafe for LoadedPlugin
impl Send for LoadedPlugin
impl Sync for LoadedPlugin
impl Unpin for LoadedPlugin
impl UnsafeUnpin for LoadedPlugin
impl UnwindSafe for LoadedPlugin
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