pub trait Resolver<T>: Execute<T> { }Expand description
A URI resolver that identifies zero or more resource locations as URLs.
Input can be a URN or URL. Resolution identifies locations; it does not retrieve the resources at those locations. The program defines supported schemes, result order, and duplicate handling. No matches is a valid result.
§Command-line contract
PROGRAM [OPTIONS] INPUT-URI
One absolute URI is required as a single argument; omission does not select
stdin. ResolverOptions::limit bounds the number of URLs. The program
writes zero or more UTF-8 absolute URLs to stdout, one per LF-terminated
line, with no blank records, header, or JSON envelope. Zero results means
zero output bytes.
Hosts parsing these records preserve order and accept CRLF and a final nonempty line without a terminator. Removing line endings does not authorize trimming other whitespace, percent-decoding, or splitting on commas/spaces.
T is the implementation’s result representation, not necessarily one URL.
See crate::programs for links to concrete execution and parsing behavior,
and the resolver specification.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".