pub enum PluginOperationError {
Registration(RegisterPluginError),
Unregistration(UnregisterPluginError),
Loading(LoadPluginError),
Unloading(UnloadPluginError),
}
Expand description
Error that can occur during plugin operations involving registration and loading.
This error type combines both registration and loading errors that can occur
when performing operations like load_plugin_now
.
Variants§
Registration(RegisterPluginError)
An error occurred during plugin registration
Unregistration(UnregisterPluginError)
An error occurred during plugin unregistration
Loading(LoadPluginError)
An error occurred during plugin loading
Unloading(UnloadPluginError)
An error occurred during plugin unloading
Trait Implementations§
Source§impl Debug for PluginOperationError
impl Debug for PluginOperationError
Source§impl Display for PluginOperationError
impl Display for PluginOperationError
Source§impl Error for PluginOperationError
impl Error for PluginOperationError
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<LoadPluginError> for PluginOperationError
impl From<LoadPluginError> for PluginOperationError
Source§fn from(source: LoadPluginError) -> Self
fn from(source: LoadPluginError) -> Self
Converts to this type from the input type.
Source§impl From<RegisterPluginError> for PluginOperationError
impl From<RegisterPluginError> for PluginOperationError
Source§fn from(source: RegisterPluginError) -> Self
fn from(source: RegisterPluginError) -> Self
Converts to this type from the input type.
Source§impl From<UnloadPluginError> for PluginOperationError
impl From<UnloadPluginError> for PluginOperationError
Source§fn from(source: UnloadPluginError) -> Self
fn from(source: UnloadPluginError) -> Self
Converts to this type from the input type.
Source§impl From<UnregisterPluginError> for PluginOperationError
impl From<UnregisterPluginError> for PluginOperationError
Source§fn from(source: UnregisterPluginError) -> Self
fn from(source: UnregisterPluginError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PluginOperationError
impl !RefUnwindSafe for PluginOperationError
impl Send for PluginOperationError
impl Sync for PluginOperationError
impl Unpin for PluginOperationError
impl !UnwindSafe for PluginOperationError
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<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