pub enum Error {
Show 26 variants
ENODATA = 1,
EFORMERR = 2,
ESERVFAIL = 3,
ENOTFOUND = 4,
ENOTIMP = 5,
EREFUSED = 6,
EBADQUERY = 7,
EBADNAME = 8,
EBADFAMILY = 9,
EBADRESP = 10,
ECONNREFUSED = 11,
ETIMEOUT = 12,
EOF = 13,
EFILE = 14,
ENOMEM = 15,
EDESTRUCTION = 16,
EBADSTR = 17,
EBADFLAGS = 18,
ENONAME = 19,
EBADHINTS = 20,
ENOTINITIALIZED = 21,
ELOADIPHLPAPI = 22,
EADDRGETNETWORKPARAMS = 23,
ECANCELLED = 24,
ESERVICE = 25,
UNKNOWN = 26,
}Expand description
Error codes that the library might return.
Variants§
ENODATA = 1
DNS server returned answer with no data.
EFORMERR = 2
DNS server claims query was misformatted.
ESERVFAIL = 3
DNS server returned general failure.
ENOTFOUND = 4
Domain name not found.
ENOTIMP = 5
DNS server does not implement requested operation.
EREFUSED = 6
DNS server refused query.
EBADQUERY = 7
Misformatted DNS query.
EBADNAME = 8
Misformatted domain name.
EBADFAMILY = 9
Unsupported address family.
EBADRESP = 10
Misformatted DNS reply.
ECONNREFUSED = 11
Could not contact DNS servers.
ETIMEOUT = 12
Timeout while contacting DNS servers.
EOF = 13
End of file.
EFILE = 14
Error reading file.
ENOMEM = 15
Out of memory.
EDESTRUCTION = 16
Channel is being destroyed.
EBADSTR = 17
Misformatted string.
EBADFLAGS = 18
Illegal flags specified.
ENONAME = 19
Given hostname is not numeric.
EBADHINTS = 20
Illegal hints flags specified.
ENOTINITIALIZED = 21
c-ares library initialization not yet performed.
ELOADIPHLPAPI = 22
Error loading iphlpapi.dll.
EADDRGETNETWORKPARAMS = 23
Could not find GetNetworkParams function.
ECANCELLED = 24
DNS query cancelled.
ESERVICE = 25
The textual service name provided could not be dereferenced into a port.
UNKNOWN = 26
Unknown error.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl Ord for Error
impl Ord for Error
source§impl PartialEq for Error
impl PartialEq for Error
source§impl PartialOrd for Error
impl PartialOrd for Error
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more