Enum resolve::record::RecordType [] [src]

pub enum RecordType {
    A,
    AAAA,
    CName,
    Mx,
    Ns,
    Ptr,
    Soa,
    Srv,
    Txt,
    Other(u16),
}

Represents the type of data in a message.

Variants

A

An IPv4 host address

AAAA

An IPv6 host address

CName

Canonical name for an alias

Mx

Mail exchange

Ns

Authoritative name server

Ptr

Domain name pointer

Soa

Start of authority

Srv

Service record

Txt

Text string

Other

Unrecognized record type

Methods

impl RecordType

fn from_u16(u: u16) -> RecordType

Converts a u16 to a RecordType.

fn to_u16(&self) -> u16

Converts a RecordType to a u16.

Trait Implementations

Derived Implementations

impl PartialEq for RecordType

fn eq(&self, __arg_0: &RecordType) -> bool

fn ne(&self, __arg_0: &RecordType) -> bool

impl Eq for RecordType

impl Debug for RecordType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for RecordType

fn clone(&self) -> RecordType

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for RecordType