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
SizeExceeded
The maximum size of the message has been exceeded.
Overflow
An internal counter has overflown.
Examples of these are record counters for the various sections in the message header.
LongName
A domain name is too long.
Domain names within messages are limited to 255 bytes overall.
RelativeName
A domain name was relative.
Since domain names are implicitely terminated by the root label within messages, only absolute names are acceptable for composing.
ParseError(ParseError)
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]
fn clone(&self) -> ComposeError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ComposeError
[src]
impl PartialEq for ComposeError
[src]
fn eq(&self, __arg_0: &ComposeError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ComposeError) -> bool
This method tests for !=
.
impl Error for ComposeError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl From<ParseError> for ComposeError
[src]
fn from(error: ParseError) -> ComposeError
Performs the conversion.