Struct gnunet_sys::GNUNET_TUN_DnsRecordLine[][src]

#[repr(C, packed)]pub struct GNUNET_TUN_DnsRecordLine {
    pub type_: u16,
    pub dns_traffic_class: u16,
    pub ttl: u32,
    pub data_len: u16,
}

General DNS record prefix.

Fields

type_: u16

Record type (GNUNET_DNSPARSER_TYPE_XXX). (NBO)

dns_traffic_class: u16

Record class (usually GNUNET_TUN_DNS_CLASS_INTERNET). (NBO)

ttl: u32

Expiration for the record (in seconds). (NBO)

data_len: u16

Number of bytes of data that follow. (NBO)

Trait Implementations

impl Clone for GNUNET_TUN_DnsRecordLine[src]

impl Copy for GNUNET_TUN_DnsRecordLine[src]

impl Debug for GNUNET_TUN_DnsRecordLine[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.