#[non_exhaustive]pub enum PluginErrorCode {
InvalidInput,
NotFound,
Conflict,
PermissionDenied,
Unavailable,
Timeout,
Internal,
}Expand description
Stable, machine-readable categories returned across the plugin boundary.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidInput
A request was malformed or violated a contract precondition.
NotFound
The requested vault, note, or tool does not exist.
Conflict
An optimistic-concurrency precondition failed.
PermissionDenied
The plugin did not declare the capability its request needs.
Distinct from Self::InvalidInput: the request was well-formed and
the target may well exist — the plugin is simply not permitted to reach
it, and no retry or reformulation will change that.
A required host capability is temporarily unavailable.
Timeout
The plugin exceeded the host’s time budget for a single call.
Internal
The host or plugin failed unexpectedly.
Trait Implementations§
Source§impl Clone for PluginErrorCode
impl Clone for PluginErrorCode
Source§fn clone(&self) -> PluginErrorCode
fn clone(&self) -> PluginErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PluginErrorCode
Source§impl Debug for PluginErrorCode
impl Debug for PluginErrorCode
Source§impl<'de> Deserialize<'de> for PluginErrorCode
impl<'de> Deserialize<'de> for PluginErrorCode
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
impl Eq for PluginErrorCode
Source§impl PartialEq for PluginErrorCode
impl PartialEq for PluginErrorCode
Source§impl Serialize for PluginErrorCode
impl Serialize for PluginErrorCode
impl StructuralPartialEq for PluginErrorCode
Auto Trait Implementations§
impl Freeze for PluginErrorCode
impl RefUnwindSafe for PluginErrorCode
impl Send for PluginErrorCode
impl Sync for PluginErrorCode
impl Unpin for PluginErrorCode
impl UnsafeUnpin for PluginErrorCode
impl UnwindSafe for PluginErrorCode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.