pub enum PluginError {
ConfigValidation(String),
MaxPluginsExceeded,
DuplicatePlugin(String),
LoadFailed(String),
EvaluationFailed {
plugin_name: String,
reason: String,
},
Serialization(String),
ResourceExceeded {
plugin_name: String,
resource: String,
},
}Expand description
Errors that can occur during plugin operations.
Variants§
ConfigValidation(String)
Plugin configuration validation failed.
MaxPluginsExceeded
The maximum number of plugins has been reached.
DuplicatePlugin(String)
A plugin with the given name is already loaded.
LoadFailed(String)
The plugin module could not be loaded.
EvaluationFailed
The plugin evaluation returned an error.
Fields
Serialization(String)
Serialization/deserialization error during plugin communication.
ResourceExceeded
The plugin exceeded its resource limits (fuel, memory, timeout).
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
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()
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