pub enum McpRuntimeError {
NotFound(String),
UnsupportedTransport {
name: String,
expected: &'static str,
actual: &'static str,
},
Spawn {
command: PathBuf,
source: Error,
},
MissingPipes {
name: String,
},
Stop {
name: String,
source: Error,
},
StopTimeout {
name: String,
timeout: Duration,
},
}Expand description
Errors surfaced while starting or stopping MCP runtimes.
Variants§
Trait Implementations§
Source§impl Debug for McpRuntimeError
impl Debug for McpRuntimeError
Source§impl Display for McpRuntimeError
impl Display for McpRuntimeError
Source§impl Error for McpRuntimeError
impl Error for McpRuntimeError
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 McpRuntimeError
impl !RefUnwindSafe for McpRuntimeError
impl Send for McpRuntimeError
impl Sync for McpRuntimeError
impl Unpin for McpRuntimeError
impl UnsafeUnpin for McpRuntimeError
impl !UnwindSafe for McpRuntimeError
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