pub enum PluginLoaderError {
LibraryLoad(Error),
SymbolNotFound(String),
NullPointer(&'static str),
JsonParse(Error),
InvalidUtf8(Utf8Error),
FileRead(Error),
VtableVersionMismatch {
found: u32,
expected: u32,
},
}Expand description
Errors that can occur during plugin loading.
Variants§
LibraryLoad(Error)
Failed to load the dynamic library.
SymbolNotFound(String)
Failed to find a required FFI symbol.
NullPointer(&'static str)
FFI function returned a null pointer.
JsonParse(Error)
Failed to parse the parameter JSON.
InvalidUtf8(Utf8Error)
The returned string was not valid UTF-8.
FileRead(Error)
Failed to read a file (e.g., sidecar JSON cache).
VtableVersionMismatch
Vtable ABI version mismatch.
Trait Implementations§
Source§impl Debug for PluginLoaderError
impl Debug for PluginLoaderError
Source§impl Display for PluginLoaderError
impl Display for PluginLoaderError
Source§impl Error for PluginLoaderError
impl Error for PluginLoaderError
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 Freeze for PluginLoaderError
impl !RefUnwindSafe for PluginLoaderError
impl Send for PluginLoaderError
impl Sync for PluginLoaderError
impl Unpin for PluginLoaderError
impl !UnwindSafe for PluginLoaderError
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