pub enum RegistryError {
Show 13 variants
InvalidId {
id: String,
provenance: String,
reason: String,
},
DuplicateId {
id: String,
first: String,
second: String,
},
DuplicateMcpName {
name: String,
first: String,
second: String,
},
DuplicateMcpUri {
uri: String,
first: String,
second: String,
},
DuplicateHttpRoute {
method: String,
path: String,
first: String,
second: String,
},
DuplicateCliPath {
path: String,
first: String,
second: String,
},
InvalidExposure {
id: String,
provenance: String,
projection: String,
reason: String,
},
NotExecutable {
id: String,
provenance: String,
stability: String,
projection: String,
},
InvalidModuleId {
id: String,
reason: String,
},
DuplicateModule {
id: String,
first: String,
second: String,
},
ModuleMismatch {
id: String,
provenance: String,
module: String,
namespace: String,
},
InvalidCachePolicy {
id: String,
provenance: String,
reason: String,
},
Shape {
id: String,
provenance: String,
reason: String,
},
}Expand description
Why the registry could not be built. Every variant names the provenance of every party.
Variants§
InvalidId
The id does not satisfy the grammar.
Fields
DuplicateId
Two descriptors claim one id.
Fields
DuplicateMcpName
Two capabilities claim one MCP tool name.
Fields
DuplicateMcpUri
Two capabilities claim one MCP resource URI.
Fields
DuplicateHttpRoute
Two capabilities claim one HTTP method and path.
Fields
DuplicateCliPath
Two capabilities claim one CLI path.
Fields
InvalidExposure
A declared exposure cannot be served by its projection.
Fields
NotExecutable
A planned or unsupported capability declares an executable exposure.
Fields
InvalidModuleId
A module id does not satisfy the grammar.
DuplicateModule
Two modules claim one id, or a builtin module’s id is a declarative kind.
ModuleMismatch
A capability’s id does not belong to the module that composes it.
Fields
InvalidCachePolicy
The cache policy keeps nothing or contradicts itself.
Fields
Shape
The descriptor’s shape contradicts its kind: a query without a handler, a resource with one or with a callable exposure.
Trait Implementations§
Source§impl Clone for RegistryError
impl Clone for RegistryError
Source§fn clone(&self) -> RegistryError
fn clone(&self) -> RegistryError
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 RegistryError
impl Debug for RegistryError
Source§impl Display for RegistryError
impl Display for RegistryError
impl Eq for RegistryError
Source§impl Error for RegistryError
impl Error for RegistryError
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 RegistryError
impl PartialEq for RegistryError
Source§fn eq(&self, other: &RegistryError) -> bool
fn eq(&self, other: &RegistryError) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RegistryError
impl Serialize for RegistryError
impl StructuralPartialEq for RegistryError
Auto Trait Implementations§
impl Freeze for RegistryError
impl RefUnwindSafe for RegistryError
impl Send for RegistryError
impl Sync for RegistryError
impl Unpin for RegistryError
impl UnsafeUnpin for RegistryError
impl UnwindSafe for RegistryError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.