pub trait AdapterRegistry {
// Required method
fn resolve(
&self,
adapter_id: &str,
adapter_version: &str,
) -> AdapterResolution;
}Expand description
Source of AdapterManifests the router consults at dispatch time.
Implemented for the built-in crate::manifest_registry via
BuiltinAdapterRegistry. Tests pass a fixture-style fake registry
that returns a synthetic manifest, which is how the router exercises
resolution against a fake adapter manifest without depending on any
specific lifecycle client.
Required Methods§
Sourcefn resolve(&self, adapter_id: &str, adapter_version: &str) -> AdapterResolution
fn resolve(&self, adapter_id: &str, adapter_version: &str) -> AdapterResolution
Resolve (adapter_id, adapter_version). Implementations MUST
distinguish “id unknown” from “id known, version mismatch” —
the router needs both signals to produce a typed
RouteError.