pub struct FailedLoad {
pub name: String,
pub dir: PathBuf,
pub error: String,
}Expand description
WT.4: a plugin the loader tried to load and could not.
A plugin that failed to load is indistinguishable from one that was never installed, and that is not a cosmetic gap — it is what turned the reported failure into a debugging session rather than a glance. The editor opened, the file opened, and org was simply absent: no language, no highlighting, no folds, no chords, and nothing anywhere saying why.
Held separately from PluginStatus rather than as another PluginHealth
variant, because a failed load has none of what that type carries: no
host-issued id, no granted capabilities, no trust tier that was ever applied.
Modelling it as a degenerate PluginStatus would mean inventing all three,
and :plugins’ row→plugin index mapping would then point at rows with no
plugin behind them.
Fields§
§name: StringThe manifest id where one could be read, else the directory’s file name. A plugin whose manifest is itself the problem still needs a name in the report, or the user cannot tell which of their plugins is being described.
dir: PathBufWhere it was loaded from — the actionable half. The name says what broke; this says which copy on disk to go and look at.
error: StringThe rendered crate::PluginLoaderError. A string rather than the error
itself: this is a snapshot for a view, outliving the load that produced
it, and the view has no use for the variant.
Trait Implementations§
Source§impl Clone for FailedLoad
impl Clone for FailedLoad
Source§fn clone(&self) -> FailedLoad
fn clone(&self) -> FailedLoad
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FailedLoad
impl Debug for FailedLoad
impl Eq for FailedLoad
Source§impl PartialEq for FailedLoad
impl PartialEq for FailedLoad
impl StructuralPartialEq for FailedLoad
Auto Trait Implementations§
impl Freeze for FailedLoad
impl RefUnwindSafe for FailedLoad
impl Send for FailedLoad
impl Sync for FailedLoad
impl Unpin for FailedLoad
impl UnsafeUnpin for FailedLoad
impl UnwindSafe for FailedLoad
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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