pub enum LoadError {
Show 16 variants
LibraryNotFound {
path: String,
},
SymbolNotFound {
path: String,
},
InvalidMagic,
IncompatibleRegistryVersion {
got: u32,
expected: u32,
},
IncompatibleAbiVersion {
got: u32,
expected: u32,
},
InterfaceHashMismatch {
got: u64,
expected: u64,
},
BufferStrategyMismatch {
got: BufferStrategyKind,
expected: BufferStrategyKind,
},
ArchitectureMismatch {
expected: String,
got: String,
},
UnknownBufferStrategy {
value: u8,
},
SignatureInvalid {
path: String,
},
SignatureRequired {
path: String,
},
PluginNotFound {
name: String,
},
LibLoading(Error),
Io(Error),
PythonLoad(String),
WasmLoad(String),
}Expand description
Errors that can occur when loading a plugin.
Variants§
LibraryNotFound
SymbolNotFound
InvalidMagic
IncompatibleRegistryVersion
IncompatibleAbiVersion
InterfaceHashMismatch
BufferStrategyMismatch
ArchitectureMismatch
UnknownBufferStrategy
SignatureInvalid
SignatureRequired
PluginNotFound
LibLoading(Error)
Io(Error)
PythonLoad(String)
Python loader failed (only produced with the python feature on).
Wraps fidius_python::PythonLoadError as a string to keep the
fidius-host public error enum type-clean across feature gates.
WasmLoad(String)
WASM component loader failed (only produced with the wasm feature on).
Wraps wasmtime/instantiation errors as a string to keep the public enum
type-clean across feature gates.
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
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 !RefUnwindSafe for LoadError
impl !UnwindSafe for LoadError
impl Freeze for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
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