domain ::base ::iana ::rcode Enum Rcode Copy item path Source pub enum Rcode {
NoError,
FormErr,
ServFail,
NXDomain,
NotImp,
Refused,
YXDomain,
YXRRSet,
NXRRSet,
NotAuth,
NotZone,
Int(u8 ),
}
Expand description DNS Response Codes.
The response code of a response indicates what happend on the server
when trying to answer the query. The code is a 4 bit value and part of
the header of a DNS message.
This response was defined as part of RFC 1035 . Later, RFC 2671
defined an extended response code of 12 bits using the lower four bits
from the header and eight additional bits stored in the OPT
pseudo-record. The type OptRcode represents this extended response
code. A third response code, now 16 bit wide, was defined for the
transaction authentication mechansim (TSIG) in [RFC 2845] and is
represented by TsigRcode .
All three codes share the same name space. Their values are defined in
one registry, IANA DNS RCODEs . This type is complete as of 2019-01-28.
No error condition.
(Otherwise known as success.)
Defined in RFC 1035 .
Format error.
The name server was unable to interpret the query.
Defined in RFC 1035 .
Server failure.
The name server was unable to process this query due to a problem
with the name server.
Defined in RFC 1035 .
Name error.
The domain name given in the query does not exist at the name server.
Defined in RFC 1035 .
Not implemented.
The name server does not support the requested kind of query.
Defined in RFC 1035 .
Query refused.
The name server refused to perform the operation requested by the
query for policy reasons.
Defined in RFC 1035 .
Name exists when it should not.
Returned for an UPDATE query when a domain requested to not exist
does in fact exist.
Returned when resolving a DNAME redirection when the resulting name
exceeds the length of 255 octets.
Defined in RFC 2136 for the UPDATE query and RFC 6672 for DNAME
redirection.
RR set exists when it should not.
Returned for an UPDATE query when an RRset requested to not exist
does in fact exist.
Defined in RFC 2136 .
RR set that should exist does not.
Returned for an UPDATE query when an RRset requested to exist
does not.
Defined in RFC 2136 .
Server not authoritative for zone or client not authorized.
Returned for an UPDATE query when the server is not an authoritative
name server for the requested domain.
Returned for queries using TSIG when authorisation failed.
Defined in RFC 2136 for UPDATE and RFC 2845 for TSIG.
Name not contained in zone.
A name used in the prerequisite or update section is not within the
zone given in the zone section.
Defined in RFC 2136 .
A raw, integer rcode value.
When converting to an u8
, only the lower four bits are used.
Creates an rcode from an integer.
Only the lower four bits of value
are considered.
Returns the integer value for this rcode.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more This method returns an ordering between
self
and
other
values if one exists.
Read more Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more This method returns an ordering between
self
and
other
values if one exists.
Read more Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dst
.
Read more Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
Performs the conversion.
Performs an infallible conversion.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String
.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.