pub enum CapabilityError {
DescriptorAlreadyRegistered(CapabilityName),
CapabilityNotDeclared(CapabilityName),
HandlerAlreadyRegistered(CapabilityName),
HandlerNotFound(CapabilityName),
ProviderUnavailable(CapabilityName),
RequiresLeader(CapabilityName),
LeaseExpired(CapabilityName),
StaleEpoch(CapabilityName),
WritesDisabled(CapabilityName),
RemoteEndpointUnavailable(CapabilityName),
RemoteInvocationFailed(String),
HandlerRejected(String),
}Expand description
Failures produced while registering, resolving, or invoking a capability.
Variants§
DescriptorAlreadyRegistered(CapabilityName)
A descriptor is already present in the composed capability catalog.
CapabilityNotDeclared(CapabilityName)
The composed host did not declare the requested capability.
HandlerAlreadyRegistered(CapabilityName)
A local handler is already registered for the capability.
HandlerNotFound(CapabilityName)
The selected local handler is no longer present in the registry.
No healthy compatible provider can serve the capability.
RequiresLeader(CapabilityName)
The capability requires a valid leadership lease.
LeaseExpired(CapabilityName)
The leadership lease has expired.
StaleEpoch(CapabilityName)
The leadership epoch is older than the active lease epoch.
WritesDisabled(CapabilityName)
The host’s current operational mode does not permit writes.
A remote provider was selected but has no usable peer endpoint.
RemoteInvocationFailed(String)
The peer RPC transport failed to invoke a remote provider.
HandlerRejected(String)
A handler rejected the request before or during execution.
Trait Implementations§
Source§impl Clone for CapabilityError
impl Clone for CapabilityError
Source§fn clone(&self) -> CapabilityError
fn clone(&self) -> CapabilityError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more