Enum trust_dns::rr::record_data::RData [] [src]

pub enum RData {
    CNAME {
        cname: Name,
    },
    HINFO {
        cpu: String,
        os: String,
    },
    MX {
        preference: u16,
        exchange: Name,
    },
    NULL {
        anything: Vec<u8>,
    },
    NS {
        nsdname: Name,
    },
    PTR {
        ptrdname: Name,
    },
    SOA {
        mname: Name,
        rname: Name,
        serial: u32,
        refresh: i32,
        retry: i32,
        expire: i32,
        minimum: u32,
    },
    SRV {
        priority: u16,
        weight: u16,
        port: u16,
        target: Name,
    },
    TXT {
        txt_data: Vec<String>,
    },
    A {
        address: Ipv4Addr,
    },
    WKS {
        address: Ipv4Addr,
        protocol: u8,
        bitmap: Vec<u8>,
    },
    AAAA {
        address: Ipv6Addr,
    },
}

Variants

CNAME

Fields

cname: Name
HINFO

Fields

cpu: String
os: String
MX

Fields

preference: u16
exchange: Name
NULL

Fields

anything: Vec<u8>
NS

Fields

nsdname: Name
PTR

Fields

ptrdname: Name
SOA

Fields

mname: Name
rname: Name
serial: u32
refresh: i32
retry: i32
expire: i32
minimum: u32
SRV

Fields

priority: u16
weight: u16
port: u16
target: Name
TXT

Fields

txt_data: Vec<String>
A

Fields

address: Ipv4Addr
WKS

Fields

address: Ipv4Addr
protocol: u8
bitmap: Vec<u8>
AAAA

Fields

address: Ipv6Addr

Methods

impl RData
[src]

fn parse(record_type: RecordType, tokens: &Vec<Token>, origin: Option<&Name>) -> ParseResult<Self>

Trait Implementations

impl Clone for RData
[src]

fn clone(&self) -> RData

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 Hash for RData
[src]

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

Feeds this value into the state given, updating the hasher as necessary.

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

Feeds a slice of this type into the state provided.

impl Ord for RData
[src]

fn cmp(&self, __arg_0: &RData) -> Ordering

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

impl PartialOrd for RData
[src]

fn partial_cmp(&self, __arg_0: &RData) -> Option<Ordering>

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

fn lt(&self, __arg_0: &RData) -> bool

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

fn le(&self, __arg_0: &RData) -> bool

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

fn gt(&self, __arg_0: &RData) -> bool

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

fn ge(&self, __arg_0: &RData) -> bool

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

impl Eq for RData
[src]

impl PartialEq for RData
[src]

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

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

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

This method tests for !=.

impl Debug for RData
[src]

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

Formats the value using the given formatter.

impl BinSerializable<RData> for RData
[src]

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

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