pub enum DnsRcode {
Show 20 variants
NoError,
FormErr,
ServFail,
NXDomain,
NotImp,
Refused,
YXDomain,
YXRRSet,
NXRRSet,
NotAuth,
NotZone,
DSOTypeI,
BadSig,
BadKey,
BadTime,
BadMode,
BadName,
BadAlg,
BadTrunc,
BadCookie,
}Expand description
DNS response codes.
Variants§
NoError
Success.
FormErr
Format error.
ServFail
Server failure.
NXDomain
Name error (NXDOMAIN).
NotImp
Not implemented.
Refused
Refused.
YXDomain
Name exists when it should not (RFC 2136).
YXRRSet
RR set exists when it should not (RFC 2136).
NXRRSet
RR set that should exist does not (RFC 2136).
NotAuth
Server not authoritative for zone (RFC 2136).
NotZone
Name not in zone (RFC 2136).
DSOTypeI
DSO-TYPE not implemented (RFC 8490).
BadSig
TSIG signature failure (RFC 8945).
BadKey
Key not recognized (RFC 8945).
BadTime
Signature out of time window (RFC 8945).
BadMode
Bad TKEY mode (RFC 2930).
BadName
Duplicate key name (RFC 2930).
BadAlg
Algorithm not supported (RFC 2930).
BadTrunc
Bad truncation (RFC 8945).
BadCookie
Bad/missing server cookie (RFC 7873).
Trait Implementations§
impl Copy for DnsRcode
impl Eq for DnsRcode
Source§impl From<DnsRcode> for ares_dns_rcode_t
impl From<DnsRcode> for ares_dns_rcode_t
Source§impl From<ares_dns_rcode_t> for DnsRcode
impl From<ares_dns_rcode_t> for DnsRcode
Source§fn from(val: ares_dns_rcode_t) -> Self
fn from(val: ares_dns_rcode_t) -> Self
Converts to this type from the input type.
Source§impl Ord for DnsRcode
impl Ord for DnsRcode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for DnsRcode
impl PartialOrd for DnsRcode
impl StructuralPartialEq for DnsRcode
Auto Trait Implementations§
impl Freeze for DnsRcode
impl RefUnwindSafe for DnsRcode
impl Send for DnsRcode
impl Sync for DnsRcode
impl Unpin for DnsRcode
impl UnsafeUnpin for DnsRcode
impl UnwindSafe for DnsRcode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more