pub enum PluginError {
Show 13 variants
InvalidState {
expected: String,
actual: String,
},
InitializationFailed(String),
ShutdownFailed(String),
ConfigError(String),
SerializationError(String),
UnknownMessageType(String),
HandlerError(String),
RuntimeError(String),
Cancelled,
Timeout,
Internal(String),
FfiError(String),
TooManyRequests,
}Expand description
Error type for plugin operations
Variants§
InvalidState
Plugin is not in a valid state for the requested operation
InitializationFailed(String)
Failed to initialize the plugin
ShutdownFailed(String)
Failed to shutdown the plugin
ConfigError(String)
Configuration error
SerializationError(String)
Serialization/deserialization error
UnknownMessageType(String)
Unknown message type tag
HandlerError(String)
Handler returned an error
RuntimeError(String)
Async runtime error
Cancelled
Request was cancelled
Timeout
Request timed out
Internal(String)
Internal error
FfiError(String)
FFI error
TooManyRequests
Too many concurrent requests
Implementations§
Source§impl PluginError
impl PluginError
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 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