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]

[src]

Creates a new empty header section.

[src]

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.

[src]

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.

[src]

Returns a reference to the underlying bytes slice.

impl HeaderSection
[src]

[src]

Returns a reference to the header.

[src]

Returns a mutable reference to the header.

[src]

Returns a reference to the header counts.

[src]

Returns a mutable reference to the header counts.

Trait Implementations

impl Clone for HeaderSection
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for HeaderSection
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for HeaderSection
[src]

[src]

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

impl PartialEq for HeaderSection
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for HeaderSection

impl Sync for HeaderSection