#[non_exhaustive]pub enum HostWrapperError {
InvalidParameter(&'static str),
NullHostInstance,
NullHostData,
Panic,
DeactivatedPlugin,
ErrorFormatError(Error),
Error(Box<dyn Error + 'static>),
Message(&'static str),
}Expand description
Errors raised by a HostWrapper.
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.
InvalidParameter(&'static str)
An invalid parameter value was encountered.
The given string may contain more information about which parameter was found to be invalid.
NullHostInstance
The raw clap_host pointer was NULL.
NullHostData
The raw clap_host.host_data field was NULL.
Panic
A wrapped implementation panicked.
DeactivatedPlugin
Tried to call a method that requires the plugin to be activated, but it wasn’t.
ErrorFormatError(Error)
Encountered an error while trying to format another HostWrapperError
Error(Box<dyn Error + 'static>)
A generic, type-erased error.
Message(&'static str)
A constant string message to be displayed.
Implementations§
Trait Implementations§
Source§impl Debug for HostWrapperError
impl Debug for HostWrapperError
Source§impl Display for HostWrapperError
impl Display for HostWrapperError
Auto Trait Implementations§
impl !RefUnwindSafe for HostWrapperError
impl !Send for HostWrapperError
impl !Sync for HostWrapperError
impl !UnwindSafe for HostWrapperError
impl Freeze for HostWrapperError
impl Unpin for HostWrapperError
impl UnsafeUnpin for HostWrapperError
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