pub enum PluginTreeError<I: InterfaceData, P: PluginData> {
InterfaceDataError(I::Error),
PluginDataError(P::Error),
MissingInterface {
interface_id: I::Id,
plugins: Vec<P>,
},
}Expand description
Error that can occur during plugin tree construction.
These errors occur in PluginTree::new when building the dependency graph,
before any WASM compilation happens.
Variants§
InterfaceDataError(I::Error)
Failed to read interface metadata (e.g., couldn’t determine the interface’s id).
PluginDataError(P::Error)
Failed to read plugin metadata (e.g., couldn’t determine the plugin’s plug).
MissingInterface
Plugins reference an interface that wasn’t provided in the interfaces list.
Trait Implementations§
Source§impl<I: Debug + InterfaceData, P: Debug + PluginData> Debug for PluginTreeError<I, P>
impl<I: Debug + InterfaceData, P: Debug + PluginData> Debug for PluginTreeError<I, P>
Source§impl<I: InterfaceData, P: PluginData> Display for PluginTreeError<I, P>
impl<I: InterfaceData, P: PluginData> Display for PluginTreeError<I, P>
Source§impl<I: InterfaceData, P: PluginData> Error for PluginTreeError<I, P>
impl<I: InterfaceData, P: PluginData> Error for PluginTreeError<I, P>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<I, P> Freeze for PluginTreeError<I, P>where
<I as InterfaceData>::Error: Freeze,
<P as PluginData>::Error: Freeze,
<I as InterfaceData>::Id: Freeze,
impl<I, P> RefUnwindSafe for PluginTreeError<I, P>where
<I as InterfaceData>::Error: RefUnwindSafe,
<P as PluginData>::Error: RefUnwindSafe,
<I as InterfaceData>::Id: RefUnwindSafe,
P: RefUnwindSafe,
impl<I, P> Send for PluginTreeError<I, P>where
<I as InterfaceData>::Error: Send,
<P as PluginData>::Error: Send,
<I as InterfaceData>::Id: Send,
impl<I, P> Sync for PluginTreeError<I, P>where
<I as InterfaceData>::Error: Sync,
<P as PluginData>::Error: Sync,
<I as InterfaceData>::Id: Sync,
P: Sync,
impl<I, P> Unpin for PluginTreeError<I, P>where
<I as InterfaceData>::Error: Unpin,
<P as PluginData>::Error: Unpin,
<I as InterfaceData>::Id: Unpin,
P: Unpin,
impl<I, P> UnwindSafe for PluginTreeError<I, P>where
<I as InterfaceData>::Error: UnwindSafe,
<P as PluginData>::Error: UnwindSafe,
<I as InterfaceData>::Id: UnwindSafe,
P: 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 moreSource§impl<X> Pipe for X
impl<X> Pipe for X
Source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
Source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
Source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait AsRef<Param>. Read moreSource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait AsMut<Param>. Read moreSource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Deref<Target = Param>. Read moreSource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait DerefMut<Target = Param>. Read moreSource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Borrow<Param>. Read moreSource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait BorrowMut<Param>. Read more