Enum dns_protocol::ResponseCode
source · [−]#[repr(u16)]
#[non_exhaustive]
pub enum ResponseCode {
Show 20 variants
NoError,
FormatError,
ServerFailure,
NameError,
NotImplemented,
Refused,
YxDomain,
YxRrSet,
NxRrSet,
NotAuth,
NotZone,
DsoTypeNi,
BadVers,
BadKey,
BadTime,
BadMode,
BadName,
BadAlg,
BadTrunc,
BadCookie,
}Expand description
The response code for a query.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoError
There was no error in the query.
FormatError
The query was malformed.
ServerFailure
The server failed to fulfill the query.
NameError
The name does not exist.
NotImplemented
The query is not implemented.
Refused
The query is refused.
YxDomain
The name exists, but the query type is not supported.
YxRrSet
The name does not exist, but the query type is supported.
NxRrSet
The name exists, but the query type is not supported.
NotAuth
The server is not authoritative for the zone.
NotZone
The name does not exist in the zone.
DsoTypeNi
The DSO-TYPE is not supported.
BadVers
Bad OPT version.
BadKey
Key not recognized.
BadTime
Signature out of time window.
BadMode
Bad TKEY mode.
BadName
Duplicate key name.
BadAlg
Algorithm not supported.
BadTrunc
Bad truncation.
BadCookie
Bad/missing server cookie.
Trait Implementations
sourceimpl Clone for ResponseCode
impl Clone for ResponseCode
sourcefn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ResponseCode
impl Debug for ResponseCode
sourceimpl From<ResponseCode> for u16
impl From<ResponseCode> for u16
sourcefn from(value: ResponseCode) -> Self
fn from(value: ResponseCode) -> Self
Converts to this type from the input type.
sourceimpl Hash for ResponseCode
impl Hash for ResponseCode
sourceimpl Ord for ResponseCode
impl Ord for ResponseCode
sourcefn cmp(&self, other: &ResponseCode) -> Ordering
fn cmp(&self, other: &ResponseCode) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ResponseCode> for ResponseCode
impl PartialEq<ResponseCode> for ResponseCode
sourcefn eq(&self, other: &ResponseCode) -> bool
fn eq(&self, other: &ResponseCode) -> bool
sourceimpl PartialOrd<ResponseCode> for ResponseCode
impl PartialOrd<ResponseCode> for ResponseCode
sourcefn partial_cmp(&self, other: &ResponseCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ResponseCode) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl TryFrom<u16> for ResponseCode
impl TryFrom<u16> for ResponseCode
impl Copy for ResponseCode
impl Eq for ResponseCode
impl StructuralEq for ResponseCode
impl StructuralPartialEq for ResponseCode
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more