Enum domain::bits::compose::ComposeError[][src]

pub enum ComposeError {
    SizeExceeded,
    Overflow,
    LongName,
    RelativeName,
    ParseError(ParseError),
}

An error happening when composing wire-format DNS data.

Variants

The maximum size of the message has been exceeded.

An internal counter has overflown.

Examples of these are record counters for the various sections in the message header.

A domain name is too long.

Domain names within messages are limited to 255 bytes overall.

A domain name was relative.

Since domain names are implicitely terminated by the root label within messages, only absolute names are acceptable for composing.

A ParseError has happened while preparing data for composing.

In some cases composition can happen using as-yet unparsed DNS data. If necessary parsing fails, its error is wrapped in this variant.

Trait Implementations

impl Clone for ComposeError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ComposeError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ComposeError
[src]

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

This method tests for !=.

impl Error for ComposeError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<ParseError> for ComposeError
[src]

Performs the conversion.

impl Display for ComposeError
[src]

Formats the value using the given formatter. Read more

impl From<ComposeError> for Error
[src]

Performs the conversion.

Auto Trait Implementations