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]
impl Clone for ComposeError
fn clone(&self) -> ComposeError
[src]
fn clone(&self) -> ComposeError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ComposeError
[src]
impl Debug for ComposeError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ComposeError
[src]
impl PartialEq for ComposeError
fn eq(&self, other: &ComposeError) -> bool
[src]
fn eq(&self, other: &ComposeError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ComposeError) -> bool
[src]
fn ne(&self, other: &ComposeError) -> bool
This method tests for !=
.
impl Error for ComposeError
[src]
impl Error for ComposeError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<ParseError> for ComposeError
[src]
impl From<ParseError> for ComposeError
fn from(error: ParseError) -> ComposeError
[src]
fn from(error: ParseError) -> ComposeError
Performs the conversion.
impl Display for ComposeError
[src]
impl Display for ComposeError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<ComposeError> for Error
[src]
impl From<ComposeError> for Error
fn from(error: ComposeError) -> Error
[src]
fn from(error: ComposeError) -> Error
Performs the conversion.
Auto Trait Implementations
impl Send for ComposeError
impl Send for ComposeError
impl Sync for ComposeError
impl Sync for ComposeError