pub enum ExtensionDispatchError {
LegacyProtocolExcluded,
ProtocolEraMismatch {
negotiated: ProtocolEra,
request: ProtocolEra,
},
RegistryReceiptMismatch,
InactiveCapability(String),
CapabilityDoesNotOwn {
capability: String,
field: &'static str,
value: String,
},
NameTooLong(String),
NoActiveOwner {
field: &'static str,
value: String,
},
DirectionMismatch {
field: &'static str,
value: String,
expected: ExtensionDirection,
actual: ExtensionDirection,
},
AmbiguousActiveOwner {
field: &'static str,
value: String,
},
}Expand description
Direction-sensitive extension dispatch failure.
Variants§
LegacyProtocolExcluded
Extensions are excluded from an exact MCP 2024-11-05 request.
ProtocolEraMismatch
The request era does not match the immutable era that negotiated this set.
Fields
negotiated: ProtocolEraThe exact era that created this set.
request: ProtocolEraThe exact era attached to the request being admitted.
RegistryReceiptMismatch
Dispatch used a registry other than the frozen registry that negotiated the set.
InactiveCapability(String)
The named extension was not activated by developer opt-in and bilateral negotiation.
CapabilityDoesNotOwn
The active capability does not own the named request member.
Fields
NameTooLong(String)
The caller supplied an unbounded member name.
NoActiveOwner
No active extension owns the requested member in this direction.
DirectionMismatch
An owner exists but is declared in the opposite direction.
AmbiguousActiveOwner
A registry invariant was violated by more than one active owner.
Trait Implementations§
Source§impl Clone for ExtensionDispatchError
impl Clone for ExtensionDispatchError
Source§fn clone(&self) -> ExtensionDispatchError
fn clone(&self) -> ExtensionDispatchError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExtensionDispatchError
impl Debug for ExtensionDispatchError
Source§impl Display for ExtensionDispatchError
impl Display for ExtensionDispatchError
impl Eq for ExtensionDispatchError
Source§impl Error for ExtensionDispatchError
impl Error for ExtensionDispatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for ExtensionDispatchError
impl PartialEq for ExtensionDispatchError
impl StructuralPartialEq for ExtensionDispatchError
Auto Trait Implementations§
impl Freeze for ExtensionDispatchError
impl RefUnwindSafe for ExtensionDispatchError
impl Send for ExtensionDispatchError
impl Sync for ExtensionDispatchError
impl Unpin for ExtensionDispatchError
impl UnsafeUnpin for ExtensionDispatchError
impl UnwindSafe for ExtensionDispatchError
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
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
key and return true if they are equal.