pub enum PluginRefusal {
Undeclared,
Unreadable {
form: u32,
},
BuiltDifferently {
built_with: BuildDeclaration,
},
}Expand description
Why the loader would not load a plugin library.
A refusal is always this razeri’s. Its message says what to rebuild the
plugin with, from BuildDeclaration::this_build, unless the plugin was
built against newer plugin crates than this razeri: then it says to run the
razeri the plugin was built for, and names both builds.
Variants§
Undeclared
The library does not say how it was built: it has no
PLUGIN_BUILD_SYMBOL. Every plugin exported without
export_plugin! is one of these.
Unreadable
The library says how it was built in a form this razeri cannot read.
BuiltDifferently
The library was built differently from this razeri.
Fields
built_with: BuildDeclarationHow the library was built.
Implementations§
Source§impl PluginRefusal
impl PluginRefusal
Sourcepub fn for_declaration(built_with: BuildDeclaration) -> Option<Self>
pub fn for_declaration(built_with: BuildDeclaration) -> Option<Self>
The refusal a plugin declaring built_with receives from this razeri,
or None when it was built exactly as this razeri was.
Trait Implementations§
Source§impl Clone for PluginRefusal
impl Clone for PluginRefusal
Source§impl Debug for PluginRefusal
impl Debug for PluginRefusal
Source§impl Display for PluginRefusal
impl Display for PluginRefusal
impl Eq for PluginRefusal
Source§impl Error for PluginRefusal
impl Error for PluginRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for PluginRefusal
impl PartialEq for PluginRefusal
impl StructuralPartialEq for PluginRefusal
Auto Trait Implementations§
impl Forget for PluginRefusal
impl Freeze for PluginRefusal
impl Move for PluginRefusal
impl RefUnwindSafe for PluginRefusal
impl Send for PluginRefusal
impl Sync for PluginRefusal
impl Unpin for PluginRefusal
impl UnsafeUnpin for PluginRefusal
impl UnwindSafe for PluginRefusal
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,
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
key and return true if they are equal.