pub enum PluginError {
Show 25 variants
PathNotFound {
source: String,
plugin: Option<String>,
path: String,
component: PluginComponent,
},
GitAuthFailed {
source: String,
plugin: Option<String>,
git_url: String,
auth_type: GitAuthType,
},
GitTimeout {
source: String,
plugin: Option<String>,
git_url: String,
operation: GitOperation,
},
NetworkError {
source: String,
plugin: Option<String>,
url: String,
details: Option<String>,
},
ManifestParseError {
source: String,
plugin: Option<String>,
manifest_path: String,
parse_error: String,
},
ManifestValidationError {
source: String,
plugin: Option<String>,
manifest_path: String,
validation_errors: Vec<String>,
},
PluginNotFound {
source: String,
plugin_id: String,
marketplace: String,
},
MarketplaceNotFound {
source: String,
marketplace: String,
available_marketplaces: Vec<String>,
},
MarketplaceLoadFailed {
source: String,
marketplace: String,
reason: String,
},
McpConfigInvalid {
source: String,
plugin: String,
server_name: String,
validation_error: String,
},
McpServerSuppressedDuplicate {
source: String,
plugin: String,
server_name: String,
duplicate_of: String,
},
LspConfigInvalid {
source: String,
plugin: String,
server_name: String,
validation_error: String,
},
HookLoadFailed {
source: String,
plugin: String,
hook_path: String,
reason: String,
},
ComponentLoadFailed {
source: String,
plugin: String,
component: PluginComponent,
path: String,
reason: String,
},
McpbDownloadFailed {
source: String,
plugin: String,
url: String,
reason: String,
},
McpbExtractFailed {
source: String,
plugin: String,
mcpb_path: String,
reason: String,
},
McpbInvalidManifest {
source: String,
plugin: String,
mcpb_path: String,
validation_error: String,
},
LspServerStartFailed {
source: String,
plugin: String,
server_name: String,
reason: String,
},
LspServerCrashed {
source: String,
plugin: String,
server_name: String,
exit_code: Option<i32>,
signal: Option<String>,
},
LspRequestTimeout {
source: String,
plugin: String,
server_name: String,
method: String,
timeout_ms: u64,
},
LspRequestFailed {
source: String,
plugin: String,
server_name: String,
method: String,
error: String,
},
MarketplaceBlockedByPolicy {
source: String,
plugin: Option<String>,
marketplace: String,
blocked_by_blocklist: Option<bool>,
allowed_sources: Vec<String>,
},
DependencyUnsatisfied {
source: String,
plugin: String,
dependency: String,
reason: DependencyReason,
},
PluginCacheMiss {
source: String,
plugin: String,
install_path: String,
},
GenericError {
source: String,
plugin: Option<String>,
error: String,
},
}Expand description
Discriminated union of plugin error types.
Variants§
PathNotFound
GitAuthFailed
GitTimeout
NetworkError
ManifestParseError
ManifestValidationError
PluginNotFound
MarketplaceNotFound
MarketplaceLoadFailed
McpConfigInvalid
McpServerSuppressedDuplicate
LspConfigInvalid
HookLoadFailed
ComponentLoadFailed
McpbDownloadFailed
McpbExtractFailed
McpbInvalidManifest
LspServerStartFailed
LspServerCrashed
Fields
LspRequestTimeout
LspRequestFailed
MarketplaceBlockedByPolicy
Fields
DependencyUnsatisfied
PluginCacheMiss
GenericError
Trait Implementations§
Source§impl Clone for PluginError
impl Clone for PluginError
Source§fn clone(&self) -> PluginError
fn clone(&self) -> PluginError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginError
impl Debug for PluginError
Source§impl<'de> Deserialize<'de> for PluginError
impl<'de> Deserialize<'de> for PluginError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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