[][src]Struct domain::rdata::rfc4034::Dnskey

pub struct Dnskey<Octets> { /* fields omitted */ }

Implementations

impl<Octets> Dnskey<Octets>[src]

pub fn new(
    flags: u16,
    protocol: u8,
    algorithm: SecAlg,
    public_key: Octets
) -> Self
[src]

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.

See RFC 4034, Section 2.1.1:

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]

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]

impl<Octets: Clone> Clone for Dnskey<Octets>[src]

impl<Octets: AsRef<[u8]>> Compose for Dnskey<Octets>[src]

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]

impl<Octets: AsRef<[u8]>> Ord for Dnskey<Octets>[src]

impl<Ref: OctetsRef> Parse<Ref> for Dnskey<Ref::Range>[src]

impl<Octets, Other> PartialEq<Dnskey<Other>> for Dnskey<Octets> where
    Octets: AsRef<[u8]>,
    Other: AsRef<[u8]>, 
[src]

impl<Octets, Other> PartialOrd<Dnskey<Other>> for Dnskey<Octets> where
    Octets: AsRef<[u8]>,
    Other: AsRef<[u8]>, 
[src]

impl<Octets> RtypeRecordData for Dnskey<Octets>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Octets, T> ParseRecordData<Octets> for T where
    T: RtypeRecordData + Parse<Octets> + Compose
[src]

impl<T> RecordData for T where
    T: Compose + RtypeRecordData
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,