pub enum ExtensionNegotiationError {
LegacyProtocolExcluded,
RegistryNotFrozen,
UnregisteredLocalEnablement(String),
DiscoveryTooManyExtensions(ExtensionPeer),
OneSidedSupport {
id: String,
missing: ExtensionPeer,
},
SettingsCompatibilityRejected(String),
EffectiveSettingsTooLarge(String),
}Expand description
Error returned while deriving a per-request bilateral extension set.
Variants§
LegacyProtocolExcluded
Extensions are excluded from exact MCP 2024-11-05 negotiation.
RegistryNotFrozen
Descriptor registration must be frozen before negotiation.
UnregisteredLocalEnablement(String)
A local feature/runtime configuration referenced an unregistered descriptor.
DiscoveryTooManyExtensions(ExtensionPeer)
A discovery map exceeded the generic retained-entry limit.
OneSidedSupport
Only one peer advertised a locally enabled descriptor without its matching fallback.
SettingsCompatibilityRejected(String)
The selected typed resolver rejected both independently decoded settings objects.
EffectiveSettingsTooLarge(String)
The normalized settings object could not be fingerprinted within its bound.
Trait Implementations§
Source§impl Clone for ExtensionNegotiationError
impl Clone for ExtensionNegotiationError
Source§fn clone(&self) -> ExtensionNegotiationError
fn clone(&self) -> ExtensionNegotiationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtensionNegotiationError
impl Debug for ExtensionNegotiationError
Source§impl Display for ExtensionNegotiationError
impl Display for ExtensionNegotiationError
impl Eq for ExtensionNegotiationError
Source§impl Error for ExtensionNegotiationError
impl Error for ExtensionNegotiationError
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()
impl StructuralPartialEq for ExtensionNegotiationError
Auto Trait Implementations§
impl Freeze for ExtensionNegotiationError
impl RefUnwindSafe for ExtensionNegotiationError
impl Send for ExtensionNegotiationError
impl Sync for ExtensionNegotiationError
impl Unpin for ExtensionNegotiationError
impl UnsafeUnpin for ExtensionNegotiationError
impl UnwindSafe for ExtensionNegotiationError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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).