#[non_exhaustive]pub enum PluginEntryError {
LibraryLoadingError(Error),
InvalidNulPath(NulError),
Io(Error),
ResolveFailed,
NullEntryPointer,
IncompatibleClapVersion {
plugin_version: ClapVersion,
},
EntryInitFailed,
}Expand description
Errors that can occur while loading a PluginEntry.
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.
LibraryLoadingError(Error)
Available on crate feature
libloading only.The dynamic library file could not be loaded.
This contains the error type from the underlying
libloading library.
InvalidNulPath(NulError)
Available on crate feature
libloading only.The given path is not a valid C string.
Io(Error)
An I/O error occurred.
ResolveFailed
Failed to resolve a CLAP entry path.
This error can only occur on macOS.
NullEntryPointer
The entry pointer exposed by the dynamic library file is null.
IncompatibleClapVersion
The exposed entry used an incompatible CLAP version.
Fields
§
plugin_version: ClapVersionThe CLAP version that the entry uses.
See ClapVersion::CURRENT to get the current clap version.
EntryInitFailed
The entry’s init method failed.
Trait Implementations§
Source§impl Debug for PluginEntryError
impl Debug for PluginEntryError
Source§impl Display for PluginEntryError
impl Display for PluginEntryError
Source§impl Error for PluginEntryError
impl Error for PluginEntryError
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 From<Error> for PluginEntryError
impl From<Error> for PluginEntryError
Auto Trait Implementations§
impl !RefUnwindSafe for PluginEntryError
impl !UnwindSafe for PluginEntryError
impl Freeze for PluginEntryError
impl Send for PluginEntryError
impl Sync for PluginEntryError
impl Unpin for PluginEntryError
impl UnsafeUnpin for PluginEntryError
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