Enum dnsparse::ResponseCode
source · [−]pub enum ResponseCode {
Show 18 variants
NoError,
FormatError,
ServerFailure,
NonExistentDomain,
NotImplemented,
Refused,
ExistentDomain,
ExistentRrSet,
NonExistentRrSet,
NotAuthoritative,
NotZone,
BadOptVersionOrBadSignature,
BadKey,
BadTime,
BadMode,
BadName,
BadAlg,
Reserved(u16),
}
Expand description
A DNS response code.
Variants
NoError
FormatError
ServerFailure
NonExistentDomain
NotImplemented
Refused
ExistentDomain
ExistentRrSet
NonExistentRrSet
NotAuthoritative
NotZone
BadOptVersionOrBadSignature
BadKey
BadTime
BadMode
BadName
BadAlg
Reserved(u16)
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 more
sourceimpl Debug for ResponseCode
impl Debug for ResponseCode
sourceimpl From<ResponseCode> for u16
impl From<ResponseCode> for u16
sourcefn from(r: ResponseCode) -> Self
fn from(r: ResponseCode) -> Self
Performs the conversion.
sourceimpl PartialEq<ResponseCode> for ResponseCode
impl PartialEq<ResponseCode> for ResponseCode
sourcefn eq(&self, other: &ResponseCode) -> bool
fn eq(&self, other: &ResponseCode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResponseCode) -> bool
fn ne(&self, other: &ResponseCode) -> bool
This method tests for !=
.
impl Copy 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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