[−][src]Struct domain::rdata::rfc4034::Dnskey
Implementations
impl<Octets> Dnskey<Octets>
[src]
pub fn new(
flags: u16,
protocol: u8,
algorithm: SecAlg,
public_key: Octets
) -> Self
[src]
flags: u16,
protocol: u8,
algorithm: SecAlg,
public_key: Octets
) -> Self
pub fn flags(&self) -> u16
[src]
pub fn protocol(&self) -> u8
[src]
pub fn algorithm(&self) -> SecAlg
[src]
pub fn public_key(&self) -> &Octets
[src]
pub fn into_public_key(self) -> Octets
[src]
pub fn convert<Other: From<Octets>>(self) -> Dnskey<Other>
[src]
pub fn is_revoked(&self) -> bool
[src]
Returns whether the Revoke flag is set.
See RFC 5011, Section 3.
pub fn is_secure_entry_point(&self) -> bool
[src]
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.
pub fn is_zsk(&self) -> bool
[src]
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.
pub fn key_tag(&self) -> u16 where
Octets: AsRef<[u8]>,
[src]
Octets: AsRef<[u8]>,
Returns the key tag for this DNSKEY data.
Trait Implementations
impl<Octets, Other> CanonicalOrd<Dnskey<Other>> for Dnskey<Octets> where
Octets: AsRef<[u8]>,
Other: AsRef<[u8]>,
[src]
Octets: AsRef<[u8]>,
Other: AsRef<[u8]>,
fn canonical_cmp(&self, other: &Dnskey<Other>) -> Ordering
[src]
#[must_use]fn canonical_lt(&self, other: &Rhs) -> bool
[src]
#[must_use]fn canonical_le(&self, other: &Rhs) -> bool
[src]
#[must_use]fn canonical_gt(&self, other: &Rhs) -> bool
[src]
#[must_use]fn canonical_ge(&self, other: &Rhs) -> bool
[src]
impl<Octets: Clone> Clone for Dnskey<Octets>
[src]
impl<Octets: AsRef<[u8]>> Compose for Dnskey<Octets>
[src]
fn compose<T: OctetsBuilder>(&self, target: &mut T) -> Result<(), ShortBuf>
[src]
fn compose_canonical<T: OctetsBuilder>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
[src]
&self,
target: &mut T
) -> Result<(), ShortBuf>
impl<Octets: AsRef<[u8]>> Debug for Dnskey<Octets>
[src]
impl<Octets: AsRef<[u8]>> Display for Dnskey<Octets>
[src]
impl<Octets: AsRef<[u8]>> Eq for Dnskey<Octets>
[src]
impl<O, N> From<Dnskey<O>> for MasterRecordData<O, N>
[src]
impl<O, N> From<Dnskey<O>> for AllRecordData<O, N>
[src]
impl<Octets: AsRef<[u8]>> Hash for Dnskey<Octets>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Octets: AsRef<[u8]>> Ord for Dnskey<Octets>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<Ref: OctetsRef> Parse<Ref> for Dnskey<Ref::Range>
[src]
fn parse(parser: &mut Parser<Ref>) -> Result<Self, ParseError>
[src]
fn skip(parser: &mut Parser<Ref>) -> Result<(), ParseError>
[src]
impl<Octets, Other> PartialEq<Dnskey<Other>> for Dnskey<Octets> where
Octets: AsRef<[u8]>,
Other: AsRef<[u8]>,
[src]
Octets: AsRef<[u8]>,
Other: AsRef<[u8]>,
fn eq(&self, other: &Dnskey<Other>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<Octets, Other> PartialOrd<Dnskey<Other>> for Dnskey<Octets> where
Octets: AsRef<[u8]>,
Other: AsRef<[u8]>,
[src]
Octets: AsRef<[u8]>,
Other: AsRef<[u8]>,
fn partial_cmp(&self, other: &Dnskey<Other>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<Octets> RtypeRecordData for Dnskey<Octets>
[src]
Auto Trait Implementations
impl<Octets> RefUnwindSafe for Dnskey<Octets> where
Octets: RefUnwindSafe,
Octets: RefUnwindSafe,
impl<Octets> Send for Dnskey<Octets> where
Octets: Send,
Octets: Send,
impl<Octets> Sync for Dnskey<Octets> where
Octets: Sync,
Octets: Sync,
impl<Octets> Unpin for Dnskey<Octets> where
Octets: Unpin,
Octets: Unpin,
impl<Octets> UnwindSafe for Dnskey<Octets> where
Octets: UnwindSafe,
Octets: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Octets, T> ParseRecordData<Octets> for T where
T: RtypeRecordData + Parse<Octets> + Compose,
[src]
T: RtypeRecordData + Parse<Octets> + Compose,
fn parse_data(Rtype, &mut Parser<Octets>) -> Result<Option<T>, ParseError>
[src]
impl<T> RecordData for T where
T: Compose + RtypeRecordData,
[src]
T: Compose + RtypeRecordData,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,