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)>
Returns 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()
Auto Trait Implementations§
impl Freeze for NameError
impl RefUnwindSafe for NameError
impl Send for NameError
impl Sync for NameError
impl Unpin for NameError
impl UnwindSafe for NameError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more