Struct trust_dns_proto::rr::rdata::mx::MX [−][src]
pub struct MX { /* 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[src]
impl MXpub fn new(preference: u16, exchange: Name) -> MX[src]
pub fn new(preference: u16, exchange: Name) -> MXConstructs a new MX RData
Arguments
preference- weight of this MX record as opposed to others, lower values have the higher preferenceexchange- Name labels for the mail server
Returns
A new MX RData for use in a Resource Record
pub fn preference(&self) -> u16[src]
pub fn preference(&self) -> u16RFC 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.
pub fn exchange(&self) -> &Name[src]
pub fn exchange(&self) -> &NameRFC 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
impl Debug for MX[src]
impl Debug for MXfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for MX[src]
impl PartialEq for MXfn eq(&self, other: &MX) -> bool[src]
fn eq(&self, other: &MX) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MX) -> bool[src]
fn ne(&self, other: &MX) -> boolThis method tests for !=.
impl Eq for MX[src]
impl Eq for MXimpl Hash for MX[src]
impl Hash for MXfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for MX[src]
impl Clone for MX