pub struct LoadedManifest {
pub manifest: PluginManifest,
pub dir: PathBuf,
}Expand description
A manifest together with the directory it was loaded from.
Fields§
§manifest: PluginManifest§dir: PathBufPlugin directory (relative paths in the manifest resolve against it).
Implementations§
Source§impl LoadedManifest
impl LoadedManifest
Sourcepub fn from_dir(dir: &Path) -> Result<Self, PluginError>
pub fn from_dir(dir: &Path) -> Result<Self, PluginError>
Find and load the manifest inside dir.
Sourcepub fn from_path(path: &Path) -> Result<Self, PluginError>
pub fn from_path(path: &Path) -> Result<Self, PluginError>
Load a manifest file; the plugin directory is its parent.
Trait Implementations§
Source§impl Clone for LoadedManifest
impl Clone for LoadedManifest
Source§impl Debug for LoadedManifest
impl Debug for LoadedManifest
Source§impl PartialEq for LoadedManifest
impl PartialEq for LoadedManifest
impl StructuralPartialEq for LoadedManifest
Auto Trait Implementations§
impl Forget for LoadedManifest
impl Freeze for LoadedManifest
impl Move for LoadedManifest
impl RefUnwindSafe for LoadedManifest
impl Send for LoadedManifest
impl Sync for LoadedManifest
impl Unpin for LoadedManifest
impl UnsafeUnpin for LoadedManifest
impl UnwindSafe for LoadedManifest
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