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

Variants

A
AAAA
ANY
AXFR
CNAME
DNSKEY
DS
IXFR
KEY
MX
NS
NULL
NSEC
NSEC3
NSEC3PARAM
OPT
PTR
RRSIG
SIG
SOA
SRV
TXT

Methods

impl RecordType

fn from_str(str: &str) -> DecodeResult<Self>

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);

fn from_u16(value: u16) -> DecodeResult<Self>

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 BinSerializable<RecordType> for RecordType

fn read(decoder: &mut BinDecoder) -> DecodeResult<Self>

fn emit(&self, encoder: &mut BinEncoder) -> EncodeResult

impl PartialOrd<RecordType> for RecordType

fn partial_cmp(&self, other: &RecordType) -> Option<Ordering>

1.0.0fn lt(&self, other: &Rhs) -> bool

1.0.0fn le(&self, other: &Rhs) -> bool

1.0.0fn gt(&self, other: &Rhs) -> bool

1.0.0fn ge(&self, other: &Rhs) -> bool

impl Ord for RecordType

fn cmp(&self, other: &Self) -> Ordering

Derived Implementations

impl Clone for RecordType

fn clone(&self) -> RecordType

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

impl Copy for RecordType

impl Hash for RecordType

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for RecordType

impl PartialEq for RecordType

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

1.0.0fn ne(&self, other: &Rhs) -> bool

impl Debug for RecordType

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