Struct gnunet_sys::GNUNET_DNSPARSER_Packet [−][src]
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.
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.
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]
fn clone(&self) -> GNUNET_DNSPARSER_Packet
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GNUNET_DNSPARSER_Packet
[src]
impl Debug for GNUNET_DNSPARSER_Packet
[src]
Auto Trait Implementations
impl RefUnwindSafe for GNUNET_DNSPARSER_Packet
impl !Send for GNUNET_DNSPARSER_Packet
impl !Sync for GNUNET_DNSPARSER_Packet
impl Unpin for GNUNET_DNSPARSER_Packet
impl UnwindSafe for GNUNET_DNSPARSER_Packet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,