pub trait UrnResolver {
// Required method
async fn resolve(
&self,
urn: &str,
opts: &ResolveOptions,
) -> Result<ResolveOutcome>;
}Expand description
The resolution contract: turn a DigUrn into a typed ResolveOutcome.
A concrete implementation walks the §5.3 node-first ladder over its own transport, verifies via
the crate::verify contract, and MUST honour the fail-closed outcome distinction above — never
returning unverified bytes as a Success.
Required Methods§
Sourceasync fn resolve(
&self,
urn: &str,
opts: &ResolveOptions,
) -> Result<ResolveOutcome>
async fn resolve( &self, urn: &str, opts: &ResolveOptions, ) -> Result<ResolveOutcome>
Resolve a URN string to a typed outcome, or a hard ResolveError.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".