pub enum McpErrorKind {
Show 15 variants
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
AgentNotRunning,
ProfileNotFound,
KeyOutOfScope,
KeyMissing,
RunTimeout,
RevealDisabled,
BiometricDenied,
ScopeWidening,
InstallTargetUnknown,
InstallConfigMalformed,
}Expand description
All error kinds returned by tsafe-mcp.
Each variant maps to a single JSON-RPC error code and a default operator-
visible message from design §5.4. Callers attach extra data for
per-field diagnostics via McpError::with_data.
Variants§
ParseError
InvalidRequest
MethodNotFound
InvalidParams
InternalError
AgentNotRunning
ProfileNotFound
KeyOutOfScope
KeyMissing
RunTimeout
RevealDisabled
BiometricDenied
ScopeWidening
InstallTargetUnknown
InstallConfigMalformed
Implementations§
Source§impl McpErrorKind
impl McpErrorKind
Trait Implementations§
Source§impl Clone for McpErrorKind
impl Clone for McpErrorKind
Source§fn clone(&self) -> McpErrorKind
fn clone(&self) -> McpErrorKind
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 moreSource§impl Debug for McpErrorKind
impl Debug for McpErrorKind
Source§impl PartialEq for McpErrorKind
impl PartialEq for McpErrorKind
Source§fn eq(&self, other: &McpErrorKind) -> bool
fn eq(&self, other: &McpErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for McpErrorKind
impl Serialize for McpErrorKind
impl Copy for McpErrorKind
impl Eq for McpErrorKind
impl StructuralPartialEq for McpErrorKind
Auto Trait Implementations§
impl Freeze for McpErrorKind
impl RefUnwindSafe for McpErrorKind
impl Send for McpErrorKind
impl Sync for McpErrorKind
impl Unpin for McpErrorKind
impl UnsafeUnpin for McpErrorKind
impl UnwindSafe for McpErrorKind
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,
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.