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

pub struct Mx<N> { /* 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.

Implementations

impl<N> Mx<N>[src]

pub fn new(preference: u16, exchange: N) -> Self[src]

Creates a new Mx record data from the components.

pub fn preference(&self) -> u16[src]

The preference for this record.

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

pub fn exchange(&self) -> &N[src]

The name of the host that is the exchange.

Trait Implementations

impl<N: ToDname, NN: ToDname> CanonicalOrd<Mx<NN>> for Mx<N>[src]

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

impl<N: ToDname> Compose for Mx<N>[src]

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

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

impl<N: ToDname> Eq for Mx<N>[src]

impl<O, N> From<Mx<N>> for MasterRecordData<O, N>[src]

impl<O, N> From<Mx<N>> for AllRecordData<O, N>[src]

impl<N: Hash> Hash for Mx<N>[src]

impl<Name, SrcName> OctetsFrom<Mx<SrcName>> for Mx<Name> where
    Name: OctetsFrom<SrcName>, 
[src]

impl<N: ToDname> Ord for Mx<N>[src]

impl<Ref: OctetsRef> Parse<Ref> for Mx<ParsedDname<Ref>>[src]

impl<N, NN> PartialEq<Mx<NN>> for Mx<N> where
    N: ToDname,
    NN: ToDname
[src]

impl<N, NN> PartialOrd<Mx<NN>> for Mx<N> where
    N: ToDname,
    NN: ToDname
[src]

impl<N> RtypeRecordData for Mx<N>[src]

impl<N: Scan> Scan for Mx<N>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Source, Target> OctetsInto<Target> for Source where
    Target: OctetsFrom<Source>, 
[src]

impl<Octets, T> ParseRecordData<Octets> for T where
    T: RtypeRecordData + Parse<Octets> + Compose
[src]

impl<T> RecordData for T where
    T: RtypeRecordData + Compose
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,