Struct hickory_proto::rr::dnssec::TrustAnchor
source · pub struct TrustAnchor { /* private fields */ }
Available on crate feature
dnssec
only.Expand description
The root set of trust anchors for validating DNSSEC, anything in this set will be trusted
Implementations§
source§impl TrustAnchor
impl TrustAnchor
sourcepub fn contains_dnskey_bytes(&self, other_key: &[u8]) -> bool
pub fn contains_dnskey_bytes(&self, other_key: &[u8]) -> bool
determines if the key is in the trust anchor set with the raw dnskey bytes
§Arguments
other_key
- The raw dnskey in bytes
sourcepub fn contains<P: PublicKey>(&self, other_key: &P) -> bool
pub fn contains<P: PublicKey>(&self, other_key: &P) -> bool
determines if the key is in the trust anchor set
sourcepub fn insert_trust_anchor<P: PublicKey>(&mut self, public_key: &P)
pub fn insert_trust_anchor<P: PublicKey>(&mut self, public_key: &P)
inserts the trust_anchor to the trusted chain
Trait Implementations§
source§impl Clone for TrustAnchor
impl Clone for TrustAnchor
source§fn clone(&self) -> TrustAnchor
fn clone(&self) -> TrustAnchor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TrustAnchor
impl RefUnwindSafe for TrustAnchor
impl Send for TrustAnchor
impl Sync for TrustAnchor
impl Unpin for TrustAnchor
impl UnwindSafe for TrustAnchor
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