#[non_exhaustive]pub enum RegistrationError {
DuplicateTool {
name: String,
},
ToolNameMismatch {
registered_name: String,
declared_name: String,
},
DuplicateResource {
uri: String,
},
ConflictingResource {
uri: String,
},
UnknownTool {
name: String,
},
MissingResourceUri {
tool: String,
},
UnregisteredResource {
uri: String,
},
InvalidToolAssociation {
tool: String,
path: String,
},
Uri(UiUriError),
Metadata(MetadataError),
}Expand description
A registration or finalization failure, before serving requests.
Failed registration, association and merge operations leave the destination router unchanged. URI and metadata errors preserve their original causes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DuplicateTool
A tool name is already registered, even if its route is disabled.
ToolNameMismatch
An imported rmcp map key disagrees with its tool’s declared name.
Fields
DuplicateResource
A resource with this exact URI spelling is already registered.
ConflictingResource
A shared static URI was declared with different content or metadata.
UnknownTool
The requested tool association has no registered tool.
MissingResourceUri
An explicit association omitted its required resource URI.
UnregisteredResource
An association refers to an HTML resource absent from this router.
InvalidToolAssociation
An existing tool’s URI association is not a JSON string.
Fields
Uri(UiUriError)
A supplied UI resource URI failed validation.
Metadata(MetadataError)
UI metadata could not be validated or composed.
Trait Implementations§
Source§impl Debug for RegistrationError
impl Debug for RegistrationError
Source§impl Display for RegistrationError
impl Display for RegistrationError
Source§impl Error for RegistrationError
impl Error for RegistrationError
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()