Struct dns_parser_joe::Header [] [src]

pub struct Header {
    pub id: u16,
    pub query: bool,
    pub opcode: Opcode,
    pub authoritative: bool,
    pub truncated: bool,
    pub recursion_desired: bool,
    pub recursion_available: bool,
    pub authenticated_data: bool,
    pub checking_disabled: bool,
    pub response_code: ResponseCode,
    pub questions: u16,
    pub answers: u16,
    pub nameservers: u16,
    pub additional: u16,
}

Represents parsed header of the packet

Fields

Methods

impl Header
[src]

Write a header to a buffer slice

Panics

When buffer size is not exactly 12 bytes

Trait Implementations

impl Debug for Header
[src]

Formats the value using the given formatter.

impl PartialEq for Header
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Header
[src]

impl Clone for Header
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Header
[src]