pub enum TestError {
Io(Error),
Setup(String),
ToolCall(ToolCallError),
Ollama(String),
Timeout(String),
}Expand description
Errors that can occur during MCP testing.
Variants§
Io(Error)
I/O error reading or writing file.
Setup(String)
Environment setup failed (OpenSearch, MCP server).
ToolCall(ToolCallError)
MCP tool call failed or returned error.
Ollama(String)
Ollama API request failed.
Timeout(String)
Timeout waiting for service to become ready.
Trait Implementations§
Source§impl Error for TestError
Chain the underlying I/O error as the source.
impl Error for TestError
Chain the underlying I/O error as the source.
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()
Auto Trait Implementations§
impl Freeze for TestError
impl !RefUnwindSafe for TestError
impl Send for TestError
impl Sync for TestError
impl Unpin for TestError
impl UnsafeUnpin for TestError
impl !UnwindSafe for TestError
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