[][src]Struct updns::DnsHeader

pub struct DnsHeader {
    pub id: u16,
    pub recursion_desired: bool,
    pub truncated_message: bool,
    pub authoritative_answer: bool,
    pub opcode: u8,
    pub response: bool,
    pub rescode: ResultCode,
    pub checking_disabled: bool,
    pub authed_data: bool,
    pub z: bool,
    pub recursion_available: bool,
    pub questions: u16,
    pub answers: u16,
    pub authoritative_entries: u16,
    pub resource_entries: u16,
}

Fields

id: u16recursion_desired: booltruncated_message: boolauthoritative_answer: boolopcode: u8response: boolrescode: ResultCodechecking_disabled: boolauthed_data: boolz: boolrecursion_available: boolquestions: u16answers: u16authoritative_entries: u16resource_entries: u16

Methods

impl DnsHeader[src]

pub fn new() -> DnsHeader[src]

pub fn read(&mut self, buffer: &mut BytePacketBuffer) -> Result<()>[src]

pub fn write(&self, buffer: &mut BytePacketBuffer) -> Result<()>[src]

Trait Implementations

impl Clone for DnsHeader[src]

impl Debug for DnsHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]