pub enum PluginLoadOutcome {
Disabled,
BlockedPendingTrust,
Loaded(LoadedPlugins),
}Expand description
The result of one discover_and_load call — see the module doc
comment’s “Trust model” section for what drives each variant.
Variants§
Disabled
[capabilities.plugins] enabled is false (the default) — nothing
was touched: no directory read, no manifest parsed, no subprocess
spawned.
BlockedPendingTrust
enabled = true, but is_trusted said no — nothing was loaded.
Distinct from PluginLoadOutcome::Disabled so a caller can report
this honestly (quarantined pending trust) rather than looking
identical to the feature being off.
Loaded(LoadedPlugins)
Trusted and enabled — every discovered manifest was at least
attempted; see LoadedPlugins::warnings for any that failed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginLoadOutcome
impl RefUnwindSafe for PluginLoadOutcome
impl Send for PluginLoadOutcome
impl Sync for PluginLoadOutcome
impl Unpin for PluginLoadOutcome
impl UnsafeUnpin for PluginLoadOutcome
impl UnwindSafe for PluginLoadOutcome
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