pub enum TransportError {
Show 13 variants
InvalidOptions(String),
SendError(GenericSendError),
WatchSendError(GenericWatchSendError),
StdioError(Error),
JsonrpcError(RpcError),
SdkError(SdkError),
ProcessError(String),
FromString(String),
OneshotRecvError(RecvError),
SendMessageError(Error),
HttpError(u16),
ShutdownTimeout,
CancellationError(CancellationError),
}
Variants§
InvalidOptions(String)
SendError(GenericSendError)
WatchSendError(GenericWatchSendError)
StdioError(Error)
JsonrpcError(RpcError)
SdkError(SdkError)
ProcessError(String)
FromString(String)
OneshotRecvError(RecvError)
SendMessageError(Error)
HttpError(u16)
ShutdownTimeout
CancellationError(CancellationError)
Trait Implementations§
Source§impl Debug for TransportError
impl Debug for TransportError
Source§impl Display for TransportError
impl Display for TransportError
Source§impl Error for TransportError
impl Error for TransportError
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<CancellationError> for TransportError
impl From<CancellationError> for TransportError
Source§fn from(source: CancellationError) -> TransportError
fn from(source: CancellationError) -> TransportError
Converts to this type from the input type.
Source§impl From<Error> for TransportError
impl From<Error> for TransportError
Source§fn from(source: Error) -> TransportError
fn from(source: Error) -> TransportError
Converts to this type from the input type.
Source§impl From<Error> for TransportError
impl From<Error> for TransportError
Source§fn from(source: Error) -> TransportError
fn from(source: Error) -> TransportError
Converts to this type from the input type.
Source§impl From<GenericSendError> for TransportError
impl From<GenericSendError> for TransportError
Source§fn from(source: GenericSendError) -> TransportError
fn from(source: GenericSendError) -> TransportError
Converts to this type from the input type.
Source§impl From<GenericWatchSendError> for TransportError
impl From<GenericWatchSendError> for TransportError
Source§fn from(source: GenericWatchSendError) -> TransportError
fn from(source: GenericWatchSendError) -> TransportError
Converts to this type from the input type.
Source§impl From<RecvError> for TransportError
impl From<RecvError> for TransportError
Source§fn from(source: RecvError) -> TransportError
fn from(source: RecvError) -> TransportError
Converts to this type from the input type.
Source§impl From<RpcError> for TransportError
impl From<RpcError> for TransportError
Source§fn from(source: RpcError) -> TransportError
fn from(source: RpcError) -> TransportError
Converts to this type from the input type.
Source§impl From<SdkError> for TransportError
impl From<SdkError> for TransportError
Source§fn from(source: SdkError) -> TransportError
fn from(source: SdkError) -> TransportError
Converts to this type from the input type.
Source§impl From<TransportError> for McpSdkError
impl From<TransportError> for McpSdkError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransportError
impl !RefUnwindSafe for TransportError
impl Send for TransportError
impl !Sync for TransportError
impl Unpin for TransportError
impl !UnwindSafe for TransportError
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.