pub struct ResolverOptions {
pub max_depth: usize,
pub max_nodes: usize,
pub max_fanout: usize,
pub total_timeout: Duration,
pub capabilities_ttl: Duration,
}Expand description
Per-walk and per-resolve safety options.
Defaults are tuned for RFC-ACDP-0006 §7.4 / §7.5 — they bound a walk
even when the producer fabricates derived_from lists pointing into a
foreign registry’s pathological lineage graph.
Fields§
§max_depth: usizePer-edge maximum depth (default 10).
max_nodes: usizeTotal number of contexts the walk may verify (default 100). Acts
as a hard ceiling even when individual hops respect max_depth.
max_fanout: usizeMaximum derived_from count permitted on any single context the
walker visits (default 32). A context that lists more parents is
either malformed or hostile — short-circuit before fanning out.
total_timeout: DurationWall-clock budget for the entire walk (default 30 s). Wraps
CrossRegistryResolver::walk_derived_from in tokio::time::timeout.
capabilities_ttl: DurationHow long to cache a foreign registry’s capabilities document
before re-fetching (default 5 min). Avoids hammering the foreign
/.well-known/acdp.json on every hop.
Trait Implementations§
Source§impl Clone for ResolverOptions
impl Clone for ResolverOptions
Source§fn clone(&self) -> ResolverOptions
fn clone(&self) -> ResolverOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more