pub struct PluginInfo<I: Info> {
pub path: PathBuf,
pub bundle: Bundle,
pub info: I,
}
Expand description
Complete information about a plugin.
PluginInfo combines the plugin’s filesystem location, bundle metadata, and dependency information into a single structure used throughout the Plux system.
§Type Parameters
I
- The type implementing the Info trait (contains dependency information)
§Fields
path
- Filesystem path to the plugin file or directorybundle
- Bundle metadata (id, version, format)info
- Dependency and configuration information
Fields§
§path: PathBuf
Filesystem path to the plugin
bundle: Bundle
Bundle metadata for the plugin
info: I
Dependency and configuration information
Auto Trait Implementations§
impl<I> Freeze for PluginInfo<I>where
I: Freeze,
impl<I> RefUnwindSafe for PluginInfo<I>where
I: RefUnwindSafe,
impl<I> Send for PluginInfo<I>
impl<I> Sync for PluginInfo<I>
impl<I> Unpin for PluginInfo<I>where
I: Unpin,
impl<I> UnwindSafe for PluginInfo<I>where
I: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more