pub enum McpClientError {
SpawnFailed(Error),
NoStdin,
NoStdout,
JsonRpc(JsonRpcError),
Timeout(Duration),
ProcessExited,
ParseError(String),
TooManyToolPages {
limit: usize,
},
TooManyTools {
limit: usize,
},
Shutdown,
InvalidServerName(McpServerNameError),
}Expand description
Errors from the MCP stdio client.
Variants§
SpawnFailed(Error)
NoStdin
NoStdout
JsonRpc(JsonRpcError)
Timeout(Duration)
ProcessExited
ParseError(String)
TooManyToolPages
TooManyTools
Shutdown
InvalidServerName(McpServerNameError)
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<Error> for McpClientError
impl From<Error> for McpClientError
Source§impl From<McpServerNameError> for McpClientError
impl From<McpServerNameError> for McpClientError
Source§fn from(source: McpServerNameError) -> Self
fn from(source: McpServerNameError) -> 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