#[non_exhaustive]pub enum PluginError {
IncompatibleApi {
plugin: String,
built_for: u32,
host: u32,
},
DuplicatePlugin {
id: String,
},
Conflict {
capability: Capability,
existing: String,
plugin: String,
},
InvalidName {
plugin: String,
name: String,
},
Failed {
plugin: String,
message: String,
},
Other(String),
}Expand description
Why a plugin could not be added, or a renderer failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IncompatibleApi
The plugin was built for another PLUGIN_API_VERSION.
DuplicatePlugin
A plugin with this id is already registered.
Conflict
Two plugins registered the same capability under the same name.
InvalidName
An id or capability name is empty or uses characters other than
lowercase letters, digits, -, _ and ..
Failed
The plugin’s own register failed.
Other(String)
A plugin-defined error, for example from a SourceRenderer.
Trait Implementations§
Source§impl Clone for PluginError
impl Clone for PluginError
Source§impl Debug for PluginError
impl Debug for PluginError
Source§impl Display for PluginError
impl Display for PluginError
impl Eq for PluginError
Source§impl Error for PluginError
impl Error for PluginError
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()
Source§impl PartialEq for PluginError
impl PartialEq for PluginError
impl StructuralPartialEq for PluginError
Auto Trait Implementations§
impl Freeze for PluginError
impl RefUnwindSafe for PluginError
impl Send for PluginError
impl Sync for PluginError
impl Unpin for PluginError
impl UnsafeUnpin for PluginError
impl UnwindSafe for PluginError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.