Struct gnunet_sys::GNUNET_DNSPARSER_Packet[][src]

#[repr(C)]pub struct GNUNET_DNSPARSER_Packet {
    pub queries: *mut GNUNET_DNSPARSER_Query,
    pub answers: *mut GNUNET_DNSPARSER_Record,
    pub authority_records: *mut GNUNET_DNSPARSER_Record,
    pub additional_records: *mut GNUNET_DNSPARSER_Record,
    pub num_queries: c_uint,
    pub num_answers: c_uint,
    pub num_authority_records: c_uint,
    pub num_additional_records: c_uint,
    pub flags: GNUNET_TUN_DnsFlags,
    pub id: u16,
}

Easy-to-process, parsed version of a DNS packet.

Fields

queries: *mut GNUNET_DNSPARSER_Query

Array of all queries in the packet, must contain “num_queries” entries.

answers: *mut GNUNET_DNSPARSER_Record

Array of all answers in the packet, must contain “num_answers” entries.

authority_records: *mut GNUNET_DNSPARSER_Record

Array of all authority records in the packet, must contain “num_authority_records” entries.

additional_records: *mut GNUNET_DNSPARSER_Record

Array of all additional answers in the packet, must contain “num_additional_records” entries.

num_queries: c_uint

Number of queries in the packet.

num_answers: c_uint

Number of answers in the packet, should be 0 for queries.

num_authority_records: c_uint

Number of authoritative answers in the packet, should be 0 for queries.

num_additional_records: c_uint

Number of additional records in the packet, should be 0 for queries.

flags: GNUNET_TUN_DnsFlags

Bitfield of DNS flags.

id: u16

DNS ID (to match replies to requests).

Trait Implementations

impl Clone for GNUNET_DNSPARSER_Packet[src]

impl Copy for GNUNET_DNSPARSER_Packet[src]

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