Struct gnunet_sys::GNUNET_DNSPARSER_MxRecord[][src]

#[repr(C)]pub struct GNUNET_DNSPARSER_MxRecord {
    pub preference: u16,
    pub mxhost: *mut c_char,
}

Information from MX records (RFC 1035).

Fields

preference: u16

Preference for this entry (lower value is higher preference).

mxhost: *mut c_char

Name of the mail server. In UTF-8 format. The library will convert from and to DNS-IDNA as necessary. Use #GNUNET_DNSPARSER_check_label() to test if an individual label is well-formed. If a given name is not well-formed, creating the DNS packet will fail.

Trait Implementations

impl Clone for GNUNET_DNSPARSER_MxRecord[src]

impl Copy for GNUNET_DNSPARSER_MxRecord[src]

impl Debug for GNUNET_DNSPARSER_MxRecord[src]

Auto Trait Implementations

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.