Struct domain::rdata::rfc1035::Mx [] [src]

pub struct Mx<N: DName> { /* fields omitted */ }

Mx record data.

The Mx record specifies a host willing to serve as a mail exchange for the owner name.

The Mx record type is defined in RFC 1035, section 3.3.9.

Methods

impl<N: DName> Mx<N>
[src]

Creates a new Mx record data from the components.

The preference for this record.

Defines an order if there are several Mx records for the same owner. Lower values are preferred.

The name of the host that is the exchange.

impl Mx<DNameBuf>
[src]

Trait Implementations

impl<N: Clone + DName> Clone for Mx<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Debug + DName> Debug for Mx<N>
[src]

Formats the value using the given formatter.

impl<N: Eq + DName> Eq for Mx<N>
[src]

impl<N: Ord + DName> Ord for Mx<N>
[src]

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

impl<N: PartialEq + DName> PartialEq for Mx<N>
[src]

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

This method tests for !=.

impl<N: PartialOrd + DName> PartialOrd for Mx<N>
[src]

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

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

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

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

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

impl<N: DName> RecordData for Mx<N>
[src]

Returns the record type for this record data instance. Read more

Appends the record data to the end of a composer.

impl<'a> ParsedRecordData<'a> for Mx<ParsedDName<'a>>
[src]

Parses the record data out of a parser.

impl<N: DName + Display> Display for Mx<N>
[src]

Formats the value using the given formatter. Read more