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]

[src]

Creates a new Mx record data from the components.

[src]

The preference for this record.

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

[src]

The name of the host that is the exchange.

impl Mx<DNameBuf>
[src]

[src]

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

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

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

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

[src]

This method tests for !=.

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

[src]

Appends the record data to the end of a composer.

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

[src]

Parses the record data out of a parser. Read more

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<N> Send for Mx<N> where
    N: Send

impl<N> Sync for Mx<N> where
    N: Sync