pub struct PluginStatus {
pub id: u32,
pub name: String,
pub tier: TrustTier,
pub granted: Vec<Capability>,
pub denied: Vec<Capability>,
pub health: PluginHealth,
pub source: SourceRecord,
pub build: BuildState,
}Expand description
A read-only snapshot of one loaded plugin for the manager view. Cloned out of the loader’s loaded-set under its lock (never a live borrow), so the view renders a stable frame while loads/unloads proceed.
Fields§
§id: u32The host-issued numeric plugin id (the u32 inside SourceLayer::Plugin
and Event::PluginCrashed.plugin).
name: StringThe manifest id — the user-facing name and the :plugin-unload <name>
key.
tier: TrustTierThe trust tier the plugin loaded under (Bundled / UserInstalled) —
which gates proc:spawn.
granted: Vec<Capability>Capabilities the plugin requested and received under its tier.
denied: Vec<Capability>Requested-but-withheld capabilities (tier-gated, e.g. proc:spawn for a
user-installed plugin). Never fatal — the plugin loaded degraded.
health: PluginHealthWhether the plugin is running or quarantined after a crash.
source: SourceRecordPM.8a: where the plugin came from, read from its on-disk .source
marker. Persisted rather than remembered, so it is still right on the
boot after the one that installed it.
build: BuildStatePM.8a: whether the cached artifact matches its source.
Trait Implementations§
Source§impl Clone for PluginStatus
impl Clone for PluginStatus
Source§fn clone(&self) -> PluginStatus
fn clone(&self) -> PluginStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PluginStatus
impl RefUnwindSafe for PluginStatus
impl Send for PluginStatus
impl Sync for PluginStatus
impl Unpin for PluginStatus
impl UnsafeUnpin for PluginStatus
impl UnwindSafe for PluginStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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