Enum trust_dns::rr::record_type::RecordType [] [src]

pub enum RecordType {
    A,
    AAAA,
    ANY,
    AXFR,
    CNAME,
    DNSKEY,
    DS,
    IXFR,
    KEY,
    MX,
    NS,
    NULL,
    NSEC,
    NSEC3,
    NSEC3PARAM,
    OPT,
    PTR,
    RRSIG,
    SIG,
    SOA,
    SRV,
    TXT,
}

The type of the resource record.

This specifies the type of data in the RData field of the Resource Record

Variants

RFC 1035[1] IPv4 Address record

RFC 3596[2] IPv6 address record

RFC 1035[1] All cached records, aka ANY

RFC 1035[1] Authoritative Zone Transfer

RFC 1035[1] Canonical name record

RFC 4034 DNS Key record: RSASHA256 and RSASHA512, RFC5702

RFC 4034 Delegation signer: RSASHA256 and RSASHA512, RFC5702

RFC 1996 Incremental Zone Transfer

RFC 2535[3] and RFC 2930[4] Key record

RFC 1035[1] Mail exchange record

RFC 1035[1] Name server record

RFC 1035[1] Null server record, for testing

RFC 4034 Next-Secure record

RFC 5155 NSEC record version 3

RFC 5155 NSEC3 parameters

RFC 6891 Option

RFC 1035[1] Pointer record

RFC 4034 DNSSEC signature: RSASHA256 and RSASHA512, RFC5702

RFC 2535 (2931) Signature, to support 2137 Update

RFC 1035[1] and RFC 2308[9] Start of [a zone of] authority record

RFC 2782 Service locator

RFC 1035[1] Text record

Methods

impl RecordType
[src]

Convert from RecordType to &str

use trust_dns::rr::record_type::RecordType;

let var: RecordType = RecordType::from_str("A").unwrap();
assert_eq!(RecordType::A, var);

Convert from RecordType to &str

use trust_dns::rr::record_type::RecordType;

let var = RecordType::from_u16(1).unwrap();
assert_eq!(RecordType::A, var);

Trait Implementations

impl Debug for RecordType
[src]

Formats the value using the given formatter.

impl PartialEq for RecordType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for RecordType
[src]

impl Hash for RecordType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for RecordType
[src]

impl Clone for RecordType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl BinSerializable<RecordType> for RecordType
[src]

Read the type from the stream

Write the type to the stream

impl PartialOrd<RecordType> for RecordType
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for RecordType
[src]

This method returns an Ordering between self and other. Read more