[][src]Enum toluol::DnsType

pub enum DnsType {
    A,
    NS,
    CNAME,
    SOA,
    PTR,
    HINFO,
    MX,
    TXT,
    RP,
    KEY,
    AAAA,
    LOC,
    SRV,
    NAPTR,
    CERT,
    DNAME,
    OPT,
    DS,
    SSHFP,
    RRSIG,
    NSEC,
    DNSKEY,
    NSEC3,
    NSEC3PARAM,
    TLSA,
    OPENPGPKEY,
    CAA,
}

Represents a DNS TYPE. This enum is non-exhaustive, see here for a more comprehensive overview as well as explanations and links to the respective defining RFCs.

Variants

A
NS
CNAME
SOA
PTR
HINFO
MX
TXT
RP
KEY
AAAA
LOC
SRV
NAPTR
CERT
DNAME
OPT
DS
SSHFP
RRSIG
NSEC
DNSKEY
NSEC3
NSEC3PARAM
TLSA
OPENPGPKEY
CAA

Implementations

impl DnsType[src]

pub fn encode(&self) -> u16[src]

Encodes a DnsType as a two-byte value.

pub fn parse(val: u16) -> Result<DnsType, ParseError>[src]

Parses an encoded DnsType from a two-byte value. Returns an error if the given value does not represent a valid DNS TYPE or the represented TYPE has not been implemented.

pub fn rdata_schema(&self) -> &str[src]

Returns the schema used for parsing in DnsRecord::parse_rdata().

Trait Implementations

impl Clone for DnsType[src]

impl Copy for DnsType[src]

impl Debug for DnsType[src]

impl Display for DnsType[src]

impl FromStr for DnsType[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl PartialEq<DnsType> for DnsType[src]

impl StructuralPartialEq for DnsType[src]

Auto Trait Implementations

impl RefUnwindSafe for DnsType

impl Send for DnsType

impl Sync for DnsType

impl Unpin for DnsType

impl UnwindSafe for DnsType

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<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>,