pub enum McpCallError {
ProtocolError {
code: i64,
message: String,
},
ToolExecutionError {
message: String,
},
HttpError {
code: i64,
message: String,
},
}Expand description
Error from an MCP tool call.
One of: protocol error, tool execution error, or HTTP error.
Variants§
ProtocolError
MCP protocol-level error.
ToolExecutionError
Error during tool execution on the MCP server.
HttpError
HTTP-level error communicating with the MCP server.
Trait Implementations§
Source§impl Clone for McpCallError
impl Clone for McpCallError
Source§fn clone(&self) -> McpCallError
fn clone(&self) -> McpCallError
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 McpCallError
impl Debug for McpCallError
Source§impl<'de> Deserialize<'de> for McpCallError
impl<'de> Deserialize<'de> for McpCallError
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 McpCallError
impl RefUnwindSafe for McpCallError
impl Send for McpCallError
impl Sync for McpCallError
impl Unpin for McpCallError
impl UnsafeUnpin for McpCallError
impl UnwindSafe for McpCallError
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