Enum dns_parser::RRData [] [src]

pub enum RRData<'a> {
    CNAME(Name<'a>),
    A(Ipv4Addr),
    AAAA(Ipv6Addr),
    SRV {
        priority: u16,
        weight: u16,
        port: u16,
        target: Name<'a>,
    },
    MX {
        preference: u16,
        exchange: Name<'a>,
    },
    Unknown(&'a [u8]),
}

The enumeration that represents known types of DNS resource records data

Variants

CNAME
A
AAAA
SRV

Fields

priority
weight
port
target
MX

Fields

preference
exchange
Unknown

Methods

impl<'a> RRData<'a>

fn parse(typ: Type, rdata: &'a [u8], original: &'a [u8]) -> Result<RRData<'a>, Error>

Trait Implementations

Derived Implementations

impl<'a> Debug for RRData<'a>

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