#[repr(i32)]pub enum McpErrorCode {
ConnectionClosed = -32_000,
RequestTimeout = -32_001,
ResourceNotFound = -32_002,
AlreadySubscribed = -32_003,
NotSubscribed = -32_004,
SessionNotFound = -32_005,
SessionRequired = -32_006,
Forbidden = -32_007,
}Expand description
MCP-specific error codes (in the -32000 to -32099 range)
Variants§
ConnectionClosed = -32_000
Transport connection was closed
RequestTimeout = -32_001
Request exceeded timeout
ResourceNotFound = -32_002
Resource not found
AlreadySubscribed = -32_003
Resource already subscribed
NotSubscribed = -32_004
Resource not subscribed (for unsubscribe)
SessionNotFound = -32_005
Session not found or expired - client should re-initialize
SessionRequired = -32_006
Session ID is required but was not provided
Forbidden = -32_007
Access forbidden (insufficient scope or authorization)
Implementations§
Trait Implementations§
Source§impl Clone for McpErrorCode
impl Clone for McpErrorCode
Source§fn clone(&self) -> McpErrorCode
fn clone(&self) -> McpErrorCode
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 McpErrorCode
impl Debug for McpErrorCode
Source§impl PartialEq for McpErrorCode
impl PartialEq for McpErrorCode
impl Copy for McpErrorCode
impl Eq for McpErrorCode
impl StructuralPartialEq for McpErrorCode
Auto Trait Implementations§
impl Freeze for McpErrorCode
impl RefUnwindSafe for McpErrorCode
impl Send for McpErrorCode
impl Sync for McpErrorCode
impl Unpin for McpErrorCode
impl UnwindSafe for McpErrorCode
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