#[repr(u32)]
pub enum ares_dns_rcode_t {
Show 20 variants ARES_RCODE_NOERROR = 0, ARES_RCODE_FORMERR = 1, ARES_RCODE_SERVFAIL = 2, ARES_RCODE_NXDOMAIN = 3, ARES_RCODE_NOTIMP = 4, ARES_RCODE_REFUSED = 5, ARES_RCODE_YXDOMAIN = 6, ARES_RCODE_YXRRSET = 7, ARES_RCODE_NXRRSET = 8, ARES_RCODE_NOTAUTH = 9, ARES_RCODE_NOTZONE = 10, ARES_RCODE_DSOTYPEI = 11, ARES_RCODE_BADSIG = 16, ARES_RCODE_BADKEY = 17, ARES_RCODE_BADTIME = 18, ARES_RCODE_BADMODE = 19, ARES_RCODE_BADNAME = 20, ARES_RCODE_BADALG = 21, ARES_RCODE_BADTRUNC = 22, ARES_RCODE_BADCOOKIE = 23,
}
Expand description

DNS Response Codes from server

Variants§

§

ARES_RCODE_NOERROR = 0

< Success

§

ARES_RCODE_FORMERR = 1

< Format error. The name server was unable to interpret the query.

§

ARES_RCODE_SERVFAIL = 2

< Server Failure. The name server was unable to process this query due to a problem with the nameserver

§

ARES_RCODE_NXDOMAIN = 3

< Name Error. Meaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist.

§

ARES_RCODE_NOTIMP = 4

< Not implemented. The name server does not support the requested kind of query

§

ARES_RCODE_REFUSED = 5

< Refused. The name server refuses to perform the specified operation for policy reasons.

§

ARES_RCODE_YXDOMAIN = 6

< RFC 2136. Some name that ought not to exist, does exist.

§

ARES_RCODE_YXRRSET = 7

< RFC 2136. Some RRset that ought to not exist, does exist.

§

ARES_RCODE_NXRRSET = 8

< RFC 2136. Some RRset that ought to exist, does not exist.

§

ARES_RCODE_NOTAUTH = 9

< RFC 2136. The server is not authoritative for the zone named in the Zone section.

§

ARES_RCODE_NOTZONE = 10

< RFC 2136. A name used in the Prerequisite or Update Section is not within the zone denoted by the Zone Section.

§

ARES_RCODE_DSOTYPEI = 11

< RFC 8409. DSO-TYPE Not implemented

§

ARES_RCODE_BADSIG = 16

< RFC 8945. TSIG Signature Failure

§

ARES_RCODE_BADKEY = 17

< RFC 8945. Key not recognized.

§

ARES_RCODE_BADTIME = 18

< RFC 8945. Signature out of time window.

§

ARES_RCODE_BADMODE = 19

< RFC 2930. Bad TKEY Mode

§

ARES_RCODE_BADNAME = 20

< RFC 2930. Duplicate Key Name

§

ARES_RCODE_BADALG = 21

< RFC 2930. Algorithm not supported

§

ARES_RCODE_BADTRUNC = 22

< RFC 8945. Bad Truncation

§

ARES_RCODE_BADCOOKIE = 23

< RVC 7973. Bad/missing Server Cookie

Trait Implementations§

source§

impl Clone for ares_dns_rcode_t

source§

fn clone(&self) -> ares_dns_rcode_t

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ares_dns_rcode_t

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for ares_dns_rcode_t

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ares_dns_rcode_t

source§

fn eq(&self, other: &ares_dns_rcode_t) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ares_dns_rcode_t

source§

impl Eq for ares_dns_rcode_t

source§

impl StructuralPartialEq for ares_dns_rcode_t

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.