pub enum ResolveError {
Parse(String),
Transport(String),
Rpc(String),
NotFound,
RootRequired,
VerifyFailed(String),
DecryptFailed,
}Expand description
A hard, fail-closed resolution failure. Distinct from ResolveOutcome::Unreachable (the
network-down state) and ResolveOutcome::IntegrityFailure (bytes fetched but unverifiable).
Variants§
Parse(String)
The input was not a syntactically valid DIG URN.
Transport(String)
A transport-level failure talking to a specific endpoint (DNS, TLS, connection, timeout,
malformed HTTP). Not “every tier down” (that is ResolveOutcome::Unreachable).
Rpc(String)
The RPC endpoint returned a protocol error, or a response the resolver cannot interpret.
NotFound
The resource does not exist in the store at the resolved root. A hard, fail-closed verdict.
RootRequired
A rootless URN was resolved over the untrusted blind tier, where the trust root cannot be established without trusting the gateway. Pin a root in the URN, or resolve via a loopback node. Fail-closed — the resolver will NOT verify against a gateway-asserted root.
VerifyFailed(String)
The served ciphertext failed integrity verification against the chain-anchored root (tampered bytes, a non-chaining proof, or a decoy from a wrong store). FAIL-CLOSED: bytes discarded.
DecryptFailed
The verified ciphertext did not decrypt under the URN’s key (AEAD tag failure — wrong key/salt or corruption), or an untrusted chunk-length plan was inconsistent. FAIL-CLOSED.
Trait Implementations§
Source§impl Clone for ResolveError
impl Clone for ResolveError
Source§fn clone(&self) -> ResolveError
fn clone(&self) -> ResolveError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
impl Eq for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()