pub struct LoadedPlugins {
pub tools: Vec<PluginTool>,
pub hooks: Vec<(String, PluginHookSpec)>,
pub loaded_plugin_names: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Every trusted, loaded plugin’s contributions — discover_and_load’s
success case.
Fields§
§tools: Vec<PluginTool>Ready-to-register tools, in discovery order.
hooks: Vec<(String, PluginHookSpec)>(plugin name, hook spec) pairs — see the module doc comment’s
“Honest, deliberate gaps” section for why these are carried but not
yet fired.
loaded_plugin_names: Vec<String>Names of every plugin whose manifest parsed successfully.
warnings: Vec<String>Human-readable warnings for manifests that failed to parse — never fatal to the OTHER plugins’ load (one bad manifest doesn’t sink the rest), but never silently swallowed either.
Trait Implementations§
Source§impl Debug for LoadedPlugins
impl Debug for LoadedPlugins
Source§impl Default for LoadedPlugins
impl Default for LoadedPlugins
Source§fn default() -> LoadedPlugins
fn default() -> LoadedPlugins
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadedPlugins
impl RefUnwindSafe for LoadedPlugins
impl Send for LoadedPlugins
impl Sync for LoadedPlugins
impl Unpin for LoadedPlugins
impl UnsafeUnpin for LoadedPlugins
impl UnwindSafe for LoadedPlugins
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