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 + ?Sized>(&self, other_key: &P) -> bool
pub fn contains<P: PublicKey + ?Sized>(&self, other_key: &P) -> bool
determines if the key is in the trust anchor set
Sourcepub fn insert_trust_anchor<P: PublicKey + ?Sized>(&mut self, public_key: &P)
pub fn insert_trust_anchor<P: PublicKey + ?Sized>(&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