[−][src]Enum domain::base::iana::rcode::OptRcode
Extended DNS Response Codes for OPT records.
Originally, the response code of embedded in the header of each DNS message was four bits long. This code, defined in [RFC 1035], is represented by the Rcode type. The extension mechanism for DNS initially defined in RFC 2671 and updated by RFC 6891 added eight more bits to be stored in the OPT pseudo-resource record. This type represents the complete 12 bit extended response code.
There is a third, 16 bit wide response code for transaction
authentication (TSIG) defined in RFC 2845 and represented by the
TsigRcode
type. The code mostly shares the same name space except
for an unfortunate collision in between the BADVERS and BADSIG values.
Because of this, we decided to have separate types.
The values for all three response code types are defined in the IANA DNS RCODEs registry. This type is complete as of 2019-01-28.
Variants
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.
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.
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.
Bad OPT version.
A name server does not implement the EDNS version requested in the OPT record.
Defined in RFC 6891.
Bad or missing server cookie.
The request contained a COOKIE option either without a server cookie or with a server cookie that did not validate.
Defined in RFC 7873.
Int(u16)
A raw, integer rcode value.
When converting to a 12 bit code, the upper four bits are simply ignored.
Implementations
impl OptRcode
[src]
pub fn from_int(value: u16) -> OptRcode
[src]
Creates an rcode from an integer.
Only the lower twelve bits of value
are considered.
pub fn to_int(self) -> u16
[src]
Returns the integer value for this rcode.
pub fn from_parts(rcode: Rcode, ext: u8) -> OptRcode
[src]
Creates an extended rcode value from its parts.
pub fn to_parts(self) -> (Rcode, u8)
[src]
Returns the two parts of an extended rcode value.
pub fn rcode(self) -> Rcode
[src]
Returns the rcode part of the extended rcode.
pub fn ext(self) -> u8
[src]
Returns the extended octet of the extended rcode.
Trait Implementations
impl Clone for OptRcode
[src]
impl Copy for OptRcode
[src]
impl Debug for OptRcode
[src]
impl Display for OptRcode
[src]
impl From<OptRcode> for u16
[src]
impl From<OptRcode> for TsigRcode
[src]
impl From<Rcode> for OptRcode
[src]
impl From<u16> for OptRcode
[src]
Auto Trait Implementations
impl RefUnwindSafe for OptRcode
impl Send for OptRcode
impl Sync for OptRcode
impl Unpin for OptRcode
impl UnwindSafe for OptRcode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,