pkarr 7.0.0

Public-Key Addressable Resource Records (Pkarr); publish and resolve DNS records over Mainline DHT
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::CacheContext;

/// Backend-specific resolution policy with all cache-first state grouped into
/// one variant.
#[derive(Clone, Copy, Debug)]
pub(in crate::client) enum BackendResolvePolicy<'a> {
    /// Resolve only from local or relay caches.
    CacheOnly,
    /// Apply a cached packet floor and local TTL bounds to network responses.
    CacheFirst(CacheContext<'a>),
    /// Query configured backends for DHT network state without cached packet state.
    NetworkOnly,
}