Enum trust_dns_proto::op::response_code::ResponseCode [−][src]
The status code of the response to a query.
RFC 1035, DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION, November 1987
RCODE Response code - this 4 bit field is set as part of
responses. The values have the following
interpretation:
0 No error condition
1 Format error - The name server was
unable to interpret the query.
2 Server failure - The name server was
unable to process this query due to a
problem with the name server.
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.
4 Not Implemented - The name server does
not support the requested kind of query.
5 Refused - The name server refuses to
perform the specified operation for
policy reasons. For example, a name
server may not wish to provide the
information to the particular requester,
or a name server may not wish to perform
a particular operation (e.g., zone
transfer) for particular data.
6-15 Reserved for future use.
Variants
No Error RFC 1035
Format Error RFC 1035
Server Failure RFC 1035
Non-Existent Domain RFC 1035
Not Implemented RFC 1035
Query Refused RFC 1035
Name Exists when it should not RFC 2136
RR Set Exists when it should not RFC 2136
RR Set that should exist does not RFC 2136
Name not contained in zone RFC 2136
Bad OPT Version RFC 6891
TSIG Signature Failure RFC 2845
Key not recognized RFC 2845
Signature out of time window RFC 2845
Bad TKEY Mode RFC 2930
Duplicate key name RFC 2930
Algorithm not supported RFC 2930
Bad Truncation RFC 4635
Bad/missing server cookie draft-ietf-dnsop-cookies
Unknown(u16)
An unknown or unregisterd response code was received.
Implementations
impl ResponseCode
[src]
pub fn low(self) -> u8
[src]
returns the lower 4 bits of the response code (for the original header portion of the code)
pub fn high(self) -> u16
[src]
returns the high 12 bits for the edns portion of the response code
pub fn from(high: u8, low: u8) -> ResponseCode
[src]
Combines the EDNS high and low from the Header to produce the Extended ResponseCode
pub fn to_str(self) -> &'static str
[src]
Transforms the response code into the human message
Trait Implementations
impl Clone for ResponseCode
[src]
fn clone(&self) -> ResponseCode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ResponseCode
[src]
impl Debug for ResponseCode
[src]
impl Display for ResponseCode
[src]
impl Eq for ResponseCode
[src]
impl From<u16> for ResponseCode
[src]
Convert from u16
to ResponseCode
use std::convert::From; use trust_dns_proto::op::response_code::ResponseCode; let var: u16 = From::from(ResponseCode::NoError); assert_eq!(0, var); let var: u16 = ResponseCode::NoError.into(); assert_eq!(0, var);
impl PartialEq<ResponseCode> for ResponseCode
[src]
fn eq(&self, other: &ResponseCode) -> bool
[src]
fn ne(&self, other: &ResponseCode) -> bool
[src]
impl PartialOrd<ResponseCode> for ResponseCode
[src]
fn partial_cmp(&self, other: &ResponseCode) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ResponseCode
[src]
impl StructuralPartialEq for ResponseCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Unpin for ResponseCode
impl UnwindSafe for ResponseCode
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,