pub enum ExtensionRegistryError {
Show 23 variants
InvalidIdentifier(String),
ReservedNamespace(String),
SettingsNotObject,
SettingsCodecRejected,
OfficialMcpAppsServerSettingsNotEmpty,
OfficialMcpAppsDescriptorMismatch,
SettingsTooManyEntries,
SettingsKeyTooLong,
SettingsTooLarge,
SettingsTooDeep,
MissingOwner(&'static str),
DuplicateExtensionId(String),
UnregisteredExtensionId(String),
OwnershipCollision {
field: &'static str,
value: String,
},
MissingHttpEraDisposition(String),
LegacyFallbackContradiction(String),
CoreMethodCollision(String),
CoreNotificationCollision(String),
CoreResultDiscriminatorCollision(String),
MemberNameTooLong {
field: &'static str,
value: String,
},
LocalOwnershipCollision {
field: &'static str,
value: String,
},
Frozen,
DigestTooLarge,
}Expand description
Stable registry-validation diagnostics.
Variants§
InvalidIdentifier(String)
The identifier did not satisfy the mandatory prefix/name grammar.
ReservedNamespace(String)
The identifier used a reserved official second DNS label.
SettingsNotObject
Generic settings were not a JSON object.
SettingsCodecRejected
Typed settings decoding rejected the otherwise preserved object.
OfficialMcpAppsServerSettingsNotEmpty
Official MCP Apps server settings must be the exact empty marker.
OfficialMcpAppsDescriptorMismatch
The official MCP Apps descriptor differed from its frozen method-free shape.
SettingsTooManyEntries
Generic settings exceeded the fixed number of retained members.
SettingsKeyTooLong
A generic settings key exceeded its fixed byte limit.
SettingsTooLarge
A generic settings value exceeded its fixed encoded-byte limit.
SettingsTooDeep
A generic settings value exceeded its fixed nesting limit.
MissingOwner(&'static str)
A descriptor omitted a required stable owner value.
DuplicateExtensionId(String)
A descriptor ID was registered twice.
UnregisteredExtensionId(String)
A method was added to an extension that is not registered.
OwnershipCollision
A named field already belongs to a different descriptor.
MissingHttpEraDisposition(String)
A client-to-server method omitted its frozen era disposition.
LegacyFallbackContradiction(String)
Legacy fallback contradicts the frozen HTTP-era disposition.
CoreMethodCollision(String)
A descriptor attempted to claim a legacy/shared core method.
CoreNotificationCollision(String)
A descriptor attempted to claim a legacy/shared core notification.
CoreResultDiscriminatorCollision(String)
A descriptor attempted to claim a final-core result discriminator.
MemberNameTooLong
A descriptor member exceeded its bounded wire-name limit.
LocalOwnershipCollision
A descriptor claimed the same local wire name in incompatible roles.
Frozen
Registration occurred after the immutable registry was frozen.
DigestTooLarge
The canonical digest subject exceeded its bounded limit.
Trait Implementations§
Source§impl Clone for ExtensionRegistryError
impl Clone for ExtensionRegistryError
Source§fn clone(&self) -> ExtensionRegistryError
fn clone(&self) -> ExtensionRegistryError
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 ExtensionRegistryError
impl Debug for ExtensionRegistryError
Source§impl Display for ExtensionRegistryError
impl Display for ExtensionRegistryError
impl Eq for ExtensionRegistryError
Source§impl Error for ExtensionRegistryError
impl Error for ExtensionRegistryError
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 ExtensionRegistryError
impl PartialEq for ExtensionRegistryError
impl StructuralPartialEq for ExtensionRegistryError
Auto Trait Implementations§
impl Freeze for ExtensionRegistryError
impl RefUnwindSafe for ExtensionRegistryError
impl Send for ExtensionRegistryError
impl Sync for ExtensionRegistryError
impl Unpin for ExtensionRegistryError
impl UnsafeUnpin for ExtensionRegistryError
impl UnwindSafe for ExtensionRegistryError
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.