pub enum ProtocolErrorCode {
InvalidRequest = -32_600,
MethodNotFound = -32_601,
InvalidParams = -32_602,
InternalError = -32_603,
}Expand description
MCP-specific JSON-RPC error codes.
Variants§
InvalidRequest = -32_600
Invalid request
MethodNotFound = -32_601
Method not found
InvalidParams = -32_602
Invalid parameters
InternalError = -32_603
Internal error
Trait Implementations§
Source§impl Clone for ProtocolErrorCode
impl Clone for ProtocolErrorCode
impl Copy for ProtocolErrorCode
Source§impl Debug for ProtocolErrorCode
impl Debug for ProtocolErrorCode
impl Eq for ProtocolErrorCode
Source§impl PartialEq for ProtocolErrorCode
impl PartialEq for ProtocolErrorCode
impl StructuralPartialEq for ProtocolErrorCode
Auto Trait Implementations§
impl Freeze for ProtocolErrorCode
impl RefUnwindSafe for ProtocolErrorCode
impl Send for ProtocolErrorCode
impl Sync for ProtocolErrorCode
impl Unpin for ProtocolErrorCode
impl UnsafeUnpin for ProtocolErrorCode
impl UnwindSafe for ProtocolErrorCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.