#[non_exhaustive]pub enum McpStreamableHttpError<E>{
Show 17 variants
Sse(Error),
Io(Error),
Client(E),
UnexpectedEndOfStream,
UnexpectedServerResponse(Cow<'static, str>),
UnexpectedContentType(Option<String>),
ServerDoesNotSupportSse,
ServerDoesNotSupportDeleteSession,
TokioJoinError(JoinError),
Deserialize(Error),
TransportChannelClosed,
MissingSessionIdInResponse,
Auth(AuthError),
AuthRequired(AuthRequiredError),
InsufficientScope(InsufficientScopeError),
ReservedHeaderConflict(String),
SessionExpired,
}Expand description
Re-exports of the rmcp Streamable HTTP transport types used by
McpHttpClient implementations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sse(Error)
Io(Error)
Client(E)
UnexpectedEndOfStream
UnexpectedServerResponse(Cow<'static, str>)
UnexpectedContentType(Option<String>)
ServerDoesNotSupportSse
ServerDoesNotSupportDeleteSession
TokioJoinError(JoinError)
Deserialize(Error)
TransportChannelClosed
MissingSessionIdInResponse
Auth(AuthError)
AuthRequired(AuthRequiredError)
InsufficientScope(InsufficientScopeError)
ReservedHeaderConflict(String)
SessionExpired
Trait Implementations§
Source§impl<E> Debug for StreamableHttpError<E>
impl<E> Debug for StreamableHttpError<E>
Source§impl<E> Display for StreamableHttpError<E>
impl<E> Display for StreamableHttpError<E>
Source§impl<E> Error for StreamableHttpError<E>
impl<E> Error for StreamableHttpError<E>
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<E> From<AuthError> for StreamableHttpError<E>
impl<E> From<AuthError> for StreamableHttpError<E>
Source§fn from(source: AuthError) -> StreamableHttpError<E>
fn from(source: AuthError) -> StreamableHttpError<E>
Converts to this type from the input type.
Source§impl<E> From<Error> for StreamableHttpError<E>
impl<E> From<Error> for StreamableHttpError<E>
Source§fn from(source: Error) -> StreamableHttpError<E>
fn from(source: Error) -> StreamableHttpError<E>
Converts to this type from the input type.
Source§impl<E> From<Error> for StreamableHttpError<E>
impl<E> From<Error> for StreamableHttpError<E>
Source§fn from(source: Error) -> StreamableHttpError<E>
fn from(source: Error) -> StreamableHttpError<E>
Converts to this type from the input type.
Source§impl<E> From<Error> for StreamableHttpError<E>
impl<E> From<Error> for StreamableHttpError<E>
Source§fn from(source: Error) -> StreamableHttpError<E>
fn from(source: Error) -> StreamableHttpError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> !RefUnwindSafe for StreamableHttpError<E>
impl<E> !UnwindSafe for StreamableHttpError<E>
impl<E> Freeze for StreamableHttpError<E>where
E: Freeze,
impl<E> Send for StreamableHttpError<E>
impl<E> Sync for StreamableHttpError<E>
impl<E> Unpin for StreamableHttpError<E>where
E: Unpin,
impl<E> UnsafeUnpin for StreamableHttpError<E>where
E: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.