pub enum DnsError {
MessageTooShort,
InvalidLabel,
NameTooLong,
CompressionLoop,
BufferTooSmall,
ServerError(DnsResponseCode),
NoNameservers,
Timeout,
NotFound,
InvalidFormat,
CacheFull,
}Expand description
DNS-specific errors
Variants§
MessageTooShort
Message too short to parse
InvalidLabel
Invalid label in domain name
NameTooLong
Name exceeds maximum length
CompressionLoop
Compression pointer loop detected
BufferTooSmall
Buffer too small for serialization
ServerError(DnsResponseCode)
Server returned an error response code
NoNameservers
No nameservers configured
Timeout
All nameservers timed out
NotFound
No records found
InvalidFormat
Invalid message format
CacheFull
Cache is full and eviction failed
Trait Implementations§
impl Copy for DnsError
impl Eq for DnsError
impl StructuralPartialEq for DnsError
Auto Trait Implementations§
impl Freeze for DnsError
impl RefUnwindSafe for DnsError
impl Send for DnsError
impl Sync for DnsError
impl Unpin for DnsError
impl UnwindSafe for DnsError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)