Struct domain::bits::header::HeaderSection[][src]

pub struct HeaderSection { /* fields omitted */ }

The complete header section of a DNS message.

Consists of a Header and a HeaderCounts.

Methods

impl HeaderSection
[src]

Creates a new empty header section.

Creates a reference from the bytes slice of a message.

Panics

This function panics if the size of the bytes slice is smaller than the header section.

Creates a mutable reference from the bytes slice of a message.

Panics

This function panics if the size of the bytes slice is smaller than the header section.

Returns a reference to the underlying bytes slice.

impl HeaderSection
[src]

Returns a reference to the header.

Returns a mutable reference to the header.

Returns a reference to the header counts.

Returns a mutable reference to the header counts.

Trait Implementations

impl Clone for HeaderSection
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for HeaderSection
[src]

Formats the value using the given formatter. Read more

impl Default for HeaderSection
[src]

Returns the "default value" for a type. Read more

impl PartialEq for HeaderSection
[src]

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

This method tests for !=.

Auto Trait Implementations