pub enum PluginError {
AbiVersionMismatch {
host: u32,
plugin: u32,
},
LibraryLoad(String),
SymbolMissing(String),
Sandbox(String),
InvalidPath(String),
NotLoaded,
InvalidMetadata(String),
}Expand description
Errors raised while loading, ABI-verifying, or sandboxing an audio plugin.
Variants§
AbiVersionMismatch
The plugin’s ABI version is incompatible with the host (major differs).
Fields
LibraryLoad(String)
A shared library could not be loaded (dlopen / LoadLibrary failed).
SymbolMissing(String)
A required extern "C" symbol was not found in the plugin library.
Sandbox(String)
A Capsicum / pdfork sandbox operation failed (FreeBSD only).
InvalidPath(String)
The supplied plugin path was invalid (non-UTF-8, empty, not a file, …).
NotLoaded
An operation was attempted on a plugin that is not currently loaded.
InvalidMetadata(String)
Plugin metadata failed validation (bad UTF-8, missing required fields, …).
Trait Implementations§
Source§impl Clone for PluginError
impl Clone for PluginError
Source§fn clone(&self) -> PluginError
fn clone(&self) -> PluginError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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