pub enum McpConfigError {
ConfigDirUnavailable,
Io {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
message: String,
},
InvalidServer {
name: String,
reason: String,
},
MissingEnvVar {
server: Option<String>,
field: Option<String>,
var: String,
},
InvalidEnvSyntax {
server: Option<String>,
field: Option<String>,
detail: String,
},
EnvFile(String),
DuplicateServer(String),
ServerNotFound(String),
}Expand description
Errors returned while loading, validating, expanding, or saving MCP configuration.
Variants§
Io
Parse
InvalidServer
MissingEnvVar
InvalidEnvSyntax
EnvFile(String)
DuplicateServer(String)
ServerNotFound(String)
Trait Implementations§
Source§impl Debug for McpConfigError
impl Debug for McpConfigError
Source§impl Display for McpConfigError
impl Display for McpConfigError
Source§impl Error for McpConfigError
impl Error for McpConfigError
1.30.0 · 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<McpConfigError> for McpError
impl From<McpConfigError> for McpError
Source§fn from(err: McpConfigError) -> Self
fn from(err: McpConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for McpConfigError
impl !UnwindSafe for McpConfigError
impl Forget for McpConfigError
impl Freeze for McpConfigError
impl Move for McpConfigError
impl Send for McpConfigError
impl Sync for McpConfigError
impl Unpin for McpConfigError
impl UnsafeUnpin for McpConfigErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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