Enum sawp_dns::enums::ResponseCode
source · [−]#[repr(u16)]
pub enum ResponseCode {
NOERROR,
FORMATERROR,
SERVERFAILURE,
NAMEERROR,
NOTIMPLEMENTED,
REFUSED,
YXDOMAIN,
YXRRSET,
NXRRSET,
NOTAUTH,
NOTZONE,
UNKNOWN,
}
Variants
NOERROR
No error condition.
FORMATERROR
The name server was unable to interpret the query.
SERVERFAILURE
There was a problem with the name server.
NAMEERROR
The domain name referenced in the query does not exist.
NOTIMPLEMENTED
The name server does not support the requested kind of query.
REFUSED
The name server’s policy forbids providing this information.
YXDOMAIN
Name exists when it should not.
YXRRSET
RR set exists when it should not.
NXRRSET
RR set that should exist does not.
NOTAUTH
Server not authoritative for zone or client not authorized.
NOTZONE
Name not in contained zone.
UNKNOWN
Implementations
sourceimpl ResponseCode
impl ResponseCode
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 PartialEq<ResponseCode> for ResponseCode
impl PartialEq<ResponseCode> for ResponseCode
sourceimpl TryFrom<u16> for ResponseCode
impl TryFrom<u16> for ResponseCode
type Error = TryFromPrimitiveError<ResponseCode>
type Error = TryFromPrimitiveError<ResponseCode>
The type returned in the event of a conversion error.
sourcefn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ResponseCode
impl TryFromPrimitive for ResponseCode
type Primitive = u16
const NAME: &'static str = "ResponseCode"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more