pub enum NameError {
LabelLength(usize),
LabelContent,
NameLength(usize),
}
Expand description
An error was encountered when trying to work with a domain name
Variants§
LabelLength(usize)
Some label in the DNS packet it too long, overflowing the packet or not following the DNS specification.
LabelContent
Some label in one of the domain names is not valid because it contains characters that are not alphanumeric or -
.
NameLength(usize)
One of the labels in the packet has a length that is bigger than the DNS specification.
Trait Implementations§
source§impl Error for NameError
impl Error for NameError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<NameError> for ParseError
impl From<NameError> for ParseError
source§fn from(source: NameError) -> ParseError
fn from(source: NameError) -> ParseError
Converts to this type from the input type.