pub enum McpClientError {
Connection(ClientInitializeError),
ToolFetch(ServiceError),
ToolFetchTimeout(Duration),
}Available on non-
target_family=wasm only.Expand description
Error type for MCP client operations (connection, tool-list fetch).
Variants§
Connection(ClientInitializeError)
Failed to establish the MCP connection or complete the handshake.
ToolFetch(ServiceError)
Failed to fetch the tool list from the MCP server.
ToolFetchTimeout(Duration)
The server did not finish returning its tool list before the deadline.
Trait Implementations§
Source§impl Debug for McpClientError
impl Debug for McpClientError
Source§impl Display for McpClientError
impl Display for McpClientError
Source§impl Error for McpClientError
impl Error for McpClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ClientInitializeError> for McpClientError
impl From<ClientInitializeError> for McpClientError
Source§fn from(source: ClientInitializeError) -> Self
fn from(source: ClientInitializeError) -> Self
Converts to this type from the input type.
Source§impl From<ServiceError> for McpClientError
impl From<ServiceError> for McpClientError
Source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for McpClientError
impl !UnwindSafe for McpClientError
impl Freeze for McpClientError
impl Send for McpClientError
impl Sync for McpClientError
impl Unpin for McpClientError
impl UnsafeUnpin for McpClientError
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