Skip to main content

CapabilityRegistry

Trait CapabilityRegistry 

Source
pub trait CapabilityRegistry: Send + Sync {
    // Required method
    fn descriptor(&self, capability: &str) -> Option<&CapabilityDescriptor>;
}
Expand description

Resolves a capability name (e.g. "http-egress", or a deployer-scoped instance like "grpc-egress:inventory-svc") to the descriptor describing how it dispatches.

Data assembled at Builder composition time, not a compiled-in match — a deployer can register additional named capabilities without editing this crate’s source (ADR-001). Zero implementation here.

Required Methods§

Source

fn descriptor(&self, capability: &str) -> Option<&CapabilityDescriptor>

Look up capability’s descriptor, if registered.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§