pub struct DecisionCacheKey { /* private fields */ }Expand description
Complete cache-key input for one dual-root decision.
Implementations§
Source§impl DecisionCacheKey
impl DecisionCacheKey
Sourcepub fn new(
decision: &NamespaceDecision,
resolver_configuration: [u8; 32],
trust_anchor_generation: u64,
) -> Self
pub fn new( decision: &NamespaceDecision, resolver_configuration: [u8; 32], trust_anchor_generation: u64, ) -> Self
Creates a cache key derived from the actual decision and bound to all external authority generations.
Sourcepub const fn decision_fingerprint(&self) -> DecisionFingerprint
pub const fn decision_fingerprint(&self) -> DecisionFingerprint
Query-, policy-, selected-root-, and plan-bound cached decision.
Sourcepub const fn query(&self) -> &OriginQuery
pub const fn query(&self) -> &OriginQuery
Canonical origin query.
Sourcepub const fn hns_network(&self) -> HnsNetwork
pub const fn hns_network(&self) -> HnsNetwork
Canonical HNS network partition.
Sourcepub fn fingerprint(&self) -> DecisionFingerprint
pub fn fingerprint(&self) -> DecisionFingerprint
Stable SHA-256 identity for cache indexing.
Trait Implementations§
Source§impl Clone for DecisionCacheKey
impl Clone for DecisionCacheKey
Source§fn clone(&self) -> DecisionCacheKey
fn clone(&self) -> DecisionCacheKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecisionCacheKey
impl Debug for DecisionCacheKey
impl Eq for DecisionCacheKey
Source§impl Hash for DecisionCacheKey
impl Hash for DecisionCacheKey
Source§impl PartialEq for DecisionCacheKey
impl PartialEq for DecisionCacheKey
impl StructuralPartialEq for DecisionCacheKey
Auto Trait Implementations§
impl Freeze for DecisionCacheKey
impl RefUnwindSafe for DecisionCacheKey
impl Send for DecisionCacheKey
impl Sync for DecisionCacheKey
impl Unpin for DecisionCacheKey
impl UnsafeUnpin for DecisionCacheKey
impl UnwindSafe for DecisionCacheKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more