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(u16)

Unrecognized record type

Methods

impl RecordType
[src]

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

impl PartialEq for RecordType
[src]

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

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

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

This method tests for !=.

impl Eq for RecordType
[src]

impl Debug for RecordType
[src]

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

Formats the value using the given formatter.

impl Clone for RecordType
[src]

fn clone(&self) -> RecordType

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for RecordType
[src]