Struct trust_dns::rr::rdata::mx::MX [] [src]

pub struct MX {
    // some fields omitted
}

RFC 1035, DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION, November 1987

3.3.9. MX RDATA format

    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    |                  PREFERENCE                   |
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                   EXCHANGE                    /
    /                                               /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

MX records cause type A additional section processing for the host
specified by EXCHANGE.  The use of MX RRs is explained in detail in
[RFC-974].

Methods

impl MX

fn new(preference: u16, exchange: Name) -> MX

fn get_preference(&self) -> u16

RFC 1035, DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION, November 1987

PREFERENCE      A 16 bit integer which specifies the preference given to
                this RR among others at the same owner.  Lower values
                are preferred.

fn get_exchange(&self) -> &Name

RFC 1035, DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION, November 1987

EXCHANGE        A <domain-name> which specifies a host willing to act as
                a mail exchange for the owner name.

Trait Implementations

Derived Implementations

impl Clone for MX

fn clone(&self) -> MX

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

impl Hash for MX

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 MX

impl PartialEq for MX

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

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

impl Debug for MX

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