pub enum McpConfigError {
Show 19 variants
Read {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
CreateDir {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
source: Error,
},
InvalidRoot {
path: PathBuf,
},
InvalidServers {
path: PathBuf,
},
DecodeServers {
source: Error,
},
InvalidAppRuntimes {
path: PathBuf,
},
DecodeAppRuntimes {
source: Error,
},
Serialize {
source: Error,
},
ServerAlreadyExists(String),
ServerNotFound(String),
InvalidServerName,
AppRuntimeAlreadyExists(String),
AppRuntimeNotFound(String),
InvalidAppRuntimeName,
InvalidEnvVarName {
name: String,
},
MissingBearerEnvVar {
server: String,
},
UnsupportedAuthTransport {
server: String,
},
}Expand description
Errors surfaced while managing MCP config entries.
Variants§
Read
Write
CreateDir
Parse
InvalidRoot
InvalidServers
DecodeServers
InvalidAppRuntimes
DecodeAppRuntimes
Serialize
ServerAlreadyExists(String)
ServerNotFound(String)
InvalidServerName
AppRuntimeAlreadyExists(String)
AppRuntimeNotFound(String)
InvalidAppRuntimeName
InvalidEnvVarName
MissingBearerEnvVar
UnsupportedAuthTransport
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
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 McpConfigError
impl !RefUnwindSafe for McpConfigError
impl Send for McpConfigError
impl Sync for McpConfigError
impl Unpin for McpConfigError
impl UnsafeUnpin for McpConfigError
impl !UnwindSafe for McpConfigError
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