pub struct Dnskey<Octets> { /* private fields */ }
Implementations§
source§impl<Octets> Dnskey<Octets>
impl<Octets> Dnskey<Octets>
pub fn new( flags: u16, protocol: u8, algorithm: SecAlg, public_key: Octets ) -> Self
pub fn flags(&self) -> u16
pub fn protocol(&self) -> u8
pub fn algorithm(&self) -> SecAlg
pub fn public_key(&self) -> &Octets
pub fn into_public_key(self) -> Octets
pub fn convert<Other: From<Octets>>(self) -> Dnskey<Other>
sourcepub fn is_revoked(&self) -> bool
pub fn is_revoked(&self) -> bool
Returns whether the Revoke flag is set.
See RFC 5011, Section 3.
sourcepub fn is_secure_entry_point(&self) -> bool
pub fn is_secure_entry_point(&self) -> bool
Returns whether the the Secure Entry Point (SEP) flag is set.
This flag is only intended to be a hint to zone signing or debugging software as to the intended use of this DNSKEY record; validators MUST NOT alter their behavior during the signature validation process in any way based on the setting of this bit.
sourcepub fn is_zsk(&self) -> bool
pub fn is_zsk(&self) -> bool
Returns whether the Zone Key flag is set.
If the flag is not set, the key MUST NOT be used to verify RRSIGs that cover RRSETs. See RFC 4034, Section 2.1.1.
source§impl<SrcOctets> Dnskey<SrcOctets>
impl<SrcOctets> Dnskey<SrcOctets>
pub fn flatten_into<Octets>(self) -> Result<Dnskey<Octets>, PushError>where Octets: OctetsFrom<SrcOctets>,
Trait Implementations§
source§impl<Octets, Other> CanonicalOrd<Dnskey<Other>> for Dnskey<Octets>where
Octets: AsRef<[u8]>,
Other: AsRef<[u8]>,
impl<Octets, Other> CanonicalOrd<Dnskey<Other>> for Dnskey<Octets>where Octets: AsRef<[u8]>, Other: AsRef<[u8]>,
source§fn canonical_cmp(&self, other: &Dnskey<Other>) -> Ordering
fn canonical_cmp(&self, other: &Dnskey<Other>) -> Ordering
Returns the canonical ordering between
self
and other
.source§fn canonical_lt(&self, other: &Rhs) -> bool
fn canonical_lt(&self, other: &Rhs) -> bool
Returns whether
self
is canonically less than other
.source§fn canonical_le(&self, other: &Rhs) -> bool
fn canonical_le(&self, other: &Rhs) -> bool
Returns whether
self
is canonically less than or equal to other
.source§fn canonical_gt(&self, other: &Rhs) -> bool
fn canonical_gt(&self, other: &Rhs) -> bool
Returns whether
self
is canonically greater than other
.source§fn canonical_ge(&self, other: &Rhs) -> bool
fn canonical_ge(&self, other: &Rhs) -> bool
Returns whether
self
is canonically greater than or equal to other
.source§impl<Octets: AsRef<[u8]>> Compose for Dnskey<Octets>
impl<Octets: AsRef<[u8]>> Compose for Dnskey<Octets>
source§impl<O, N> From<Dnskey<O>> for AllRecordData<O, N>
impl<O, N> From<Dnskey<O>> for AllRecordData<O, N>
source§impl<O, N> From<Dnskey<O>> for ZoneRecordData<O, N>
impl<O, N> From<Dnskey<O>> for ZoneRecordData<O, N>
source§impl<Octets, SrcOctets> OctetsFrom<Dnskey<SrcOctets>> for Dnskey<Octets>where
Octets: OctetsFrom<SrcOctets>,
impl<Octets, SrcOctets> OctetsFrom<Dnskey<SrcOctets>> for Dnskey<Octets>where Octets: OctetsFrom<SrcOctets>,
source§impl<Octets: AsRef<[u8]>> Ord for Dnskey<Octets>
impl<Octets: AsRef<[u8]>> Ord for Dnskey<Octets>
source§impl<Octets, Other> PartialEq<Dnskey<Other>> for Dnskey<Octets>where
Octets: AsRef<[u8]>,
Other: AsRef<[u8]>,
impl<Octets, Other> PartialEq<Dnskey<Other>> for Dnskey<Octets>where Octets: AsRef<[u8]>, Other: AsRef<[u8]>,
source§impl<Octets, Other> PartialOrd<Dnskey<Other>> for Dnskey<Octets>where
Octets: AsRef<[u8]>,
Other: AsRef<[u8]>,
impl<Octets, Other> PartialOrd<Dnskey<Other>> for Dnskey<Octets>where Octets: AsRef<[u8]>, Other: AsRef<[u8]>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<Octets> RtypeRecordData for Dnskey<Octets>
impl<Octets> RtypeRecordData for Dnskey<Octets>
impl<Octets: AsRef<[u8]>> Eq for Dnskey<Octets>
Auto Trait Implementations§
impl<Octets> RefUnwindSafe for Dnskey<Octets>where Octets: RefUnwindSafe,
impl<Octets> Send for Dnskey<Octets>where Octets: Send,
impl<Octets> Sync for Dnskey<Octets>where Octets: Sync,
impl<Octets> Unpin for Dnskey<Octets>where Octets: Unpin,
impl<Octets> UnwindSafe for Dnskey<Octets>where Octets: UnwindSafe,
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
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere Target: OctetsFrom<Source>,
source§fn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.
source§impl<Octets, T> ParseRecordData<Octets> for Twhere
T: RtypeRecordData + Parse<Octets> + Compose,
impl<Octets, T> ParseRecordData<Octets> for Twhere T: RtypeRecordData + Parse<Octets> + Compose,
source§fn parse_data(
rtype: Rtype,
parser: &mut Parser<Octets>
) -> Result<Option<T>, ParseError>
fn parse_data( rtype: Rtype, parser: &mut Parser<Octets> ) -> Result<Option<T>, ParseError>
Parses the record data. Read more