Struct gnunet_sys::GNUNET_DNSPARSER_Record[][src]

#[repr(C)]pub struct GNUNET_DNSPARSER_Record {
    pub name: *mut c_char,
    pub data: GNUNET_DNSPARSER_Record__bindgen_ty_1,
    pub expiration_time: GNUNET_TIME_Absolute,
    pub type_: u16,
    pub dns_traffic_class: u16,
}

A DNS response record.

Fields

name: *mut c_char

Name of the record that the query is for (0-terminated). 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.

data: GNUNET_DNSPARSER_Record__bindgen_ty_1expiration_time: GNUNET_TIME_Absolute

When does the record expire?

type_: u16

See GNUNET_DNSPARSER_TYPE_*.

dns_traffic_class: u16

See GNUNET_TUN_DNS_CLASS_*.

Trait Implementations

impl Clone for GNUNET_DNSPARSER_Record[src]

impl Copy for GNUNET_DNSPARSER_Record[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.