pub enum PluginError {
SourceError(String),
IoError(Error),
RegisterFunctionError(PluginRegisterFunctionError),
}
Expand description
Errors that can occur during plugin operations.
This enum represents various error conditions that can occur when loading, initializing, or executing plugins.
Variants§
SourceError(String)
The plugin source code could not be loaded or compiled.
IoError(Error)
An I/O error occurred while working with plugin files.
RegisterFunctionError(PluginRegisterFunctionError)
An error occurred while registering plugin functions.
Trait Implementations§
Source§impl Debug for PluginError
impl Debug for PluginError
Source§impl Display for PluginError
impl Display for PluginError
Source§impl Error for PluginError
impl Error for PluginError
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 PluginError
impl From<Error> for PluginError
Source§impl From<PluginError> for ManagerError
impl From<PluginError> for ManagerError
Source§fn from(source: PluginError) -> Self
fn from(source: PluginError) -> Self
Converts to this type from the input type.
Source§impl From<PluginRegisterFunctionError> for PluginError
impl From<PluginRegisterFunctionError> for PluginError
Source§fn from(source: PluginRegisterFunctionError) -> Self
fn from(source: PluginRegisterFunctionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PluginError
impl !RefUnwindSafe for PluginError
impl Send for PluginError
impl Sync for PluginError
impl Unpin 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
Source§impl<E> ExternalError for E
impl<E> ExternalError for E
fn into_lua_err(self) -> Error
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more