pub enum ClientConnectError {
AuthError {
msg: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
AuthHandlerError(AuthFlowError),
ConnectionError {
msg: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
}Expand description
Errors that occur when connecting the client.
Variants§
AuthError
A step of the authentication process failed.
AuthHandlerError(AuthFlowError)
A step of the authentication process failed, inside the authentication handler.
AuthFlowError::Aborted
can indicate that the user cancelled or failed the authentication
steps.
ConnectionError
Failed to set up a connection to the MCP servic.
Trait Implementations§
Source§impl Debug for ClientConnectError
impl Debug for ClientConnectError
Source§impl Display for ClientConnectError
impl Display for ClientConnectError
Source§impl Error for ClientConnectError
impl Error for ClientConnectError
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<AuthFlowError> for ClientConnectError
impl From<AuthFlowError> for ClientConnectError
Source§fn from(source: AuthFlowError) -> Self
fn from(source: AuthFlowError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClientConnectError
impl !UnwindSafe for ClientConnectError
impl Freeze for ClientConnectError
impl Send for ClientConnectError
impl Sync for ClientConnectError
impl Unpin for ClientConnectError
impl UnsafeUnpin for ClientConnectError
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