pub enum AddBackendError {
DuplicateNamespace(String),
AmbiguousPrefix {
new_namespace: String,
existing_namespace: String,
},
Connect(Error),
Initialize(Error),
}Expand description
Error returned when adding a dynamic backend fails.
Variants§
DuplicateNamespace(String)
The namespace is already in use by an existing backend.
AmbiguousPrefix
The namespace would create an ambiguous prefix with an existing backend.
Fields
Connect(Error)
Failed to connect the transport.
Initialize(Error)
Failed during MCP initialization handshake.
Trait Implementations§
Source§impl Debug for AddBackendError
impl Debug for AddBackendError
Source§impl Display for AddBackendError
impl Display for AddBackendError
Source§impl Error for AddBackendError
impl Error for AddBackendError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for AddBackendError
impl !UnwindSafe for AddBackendError
impl Freeze for AddBackendError
impl Send for AddBackendError
impl Sync for AddBackendError
impl Unpin for AddBackendError
impl UnsafeUnpin for AddBackendError
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