pub enum PluginError {
InitFailed(String),
CommandError(String),
PermissionDenied(String),
Timeout(String),
PluginNotFound(String),
ProtocolMismatch(String),
ConfigError(String),
Other(String),
}Expand description
Error type for plugin operations.
Variants§
InitFailed(String)
Plugin initialization failed.
CommandError(String)
Command handling failed.
PermissionDenied(String)
Permission denied for a host function call.
Timeout(String)
A guest call exceeded its time budget.
PluginNotFound(String)
No plugin with the given ID is registered.
ProtocolMismatch(String)
The guest’s protocol version is incompatible with the host.
ConfigError(String)
Plugin configuration is invalid.
Other(String)
Generic plugin error.
Implementations§
Source§impl PluginError
impl PluginError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Whether this error could succeed if retried (e.g., timeouts).
Sourcepub fn is_permission_error(&self) -> bool
pub fn is_permission_error(&self) -> bool
Whether this error is a permission denial.
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