pub enum ExtensionHandlerInvocationError {
RegistryNotFrozen,
Protocol(ExtensionDispatchError),
HandlerNotFound(ExtensionHandlerKey),
RequestEnvelopeRequired(ExtensionHandlerKey),
Handler(McpError),
}Expand description
Failure while admitting or invoking a typed extension handler.
Variants§
RegistryNotFrozen
Invocation is unavailable until the capability and handler registries are frozen together.
Protocol(ExtensionDispatchError)
The current exchange did not admit this capability and client-to-server request method.
HandlerNotFound(ExtensionHandlerKey)
No handler was registered for an otherwise admitted extension request method.
RequestEnvelopeRequired(ExtensionHandlerKey)
A descriptor-owned extension request was sent as an id-less notification.
Handler(McpError)
The admitted typed handler returned an MCP error.
Trait Implementations§
Source§impl Error for ExtensionHandlerInvocationError
impl Error for ExtensionHandlerInvocationError
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 ExtensionHandlerInvocationError
impl RefUnwindSafe for ExtensionHandlerInvocationError
impl Send for ExtensionHandlerInvocationError
impl Sync for ExtensionHandlerInvocationError
impl Unpin for ExtensionHandlerInvocationError
impl UnsafeUnpin for ExtensionHandlerInvocationError
impl UnwindSafe for ExtensionHandlerInvocationError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).