#[repr(u16)]pub enum OptResponseCode {
Show 14 variants
NOERROR = 0,
FORMATERROR = 1,
SERVERFAILURE = 2,
NAMEERROR = 3,
NOTIMPLEMENTED = 4,
REFUSED = 5,
YXDOMAIN = 6,
YXRRSET = 7,
NXRRSET = 8,
NOTAUTH = 9,
NOTZONE = 10,
BADVERSION = 16,
BADCOOKIE = 23,
UNKNOWN = 24,
}Variants§
NOERROR = 0
No error condition.
FORMATERROR = 1
The name server was unable to interpret the query.
SERVERFAILURE = 2
There was a problem with the name server.
NAMEERROR = 3
The domain name referenced in the query does not exist.
NOTIMPLEMENTED = 4
The name server does not support the requested kind of query.
REFUSED = 5
The name server’s policy forbids providing this information.
YXDOMAIN = 6
Name exists when it should not.
YXRRSET = 7
RR set exists when it should not.
NXRRSET = 8
RR set that should exist does not.
NOTAUTH = 9
Server not authoritative for zone or client not authorized.
NOTZONE = 10
Name not in contained zone.
BADVERSION = 16
Bad OPT version
BADCOOKIE = 23
Bad/missing server cookie
UNKNOWN = 24
Implementations§
Trait Implementations§
Source§impl Clone for OptResponseCode
impl Clone for OptResponseCode
Source§fn clone(&self) -> OptResponseCode
fn clone(&self) -> OptResponseCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptResponseCode
Source§impl Debug for OptResponseCode
impl Debug for OptResponseCode
impl Eq for OptResponseCode
Source§impl PartialEq for OptResponseCode
impl PartialEq for OptResponseCode
Source§fn eq(&self, other: &OptResponseCode) -> bool
fn eq(&self, other: &OptResponseCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptResponseCode
Source§impl TryFrom<u16> for OptResponseCode
impl TryFrom<u16> for OptResponseCode
Source§type Error = TryFromPrimitiveError<OptResponseCode>
type Error = TryFromPrimitiveError<OptResponseCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for OptResponseCode
impl TryFromPrimitive for OptResponseCode
Auto Trait Implementations§
impl Freeze for OptResponseCode
impl RefUnwindSafe for OptResponseCode
impl Send for OptResponseCode
impl Sync for OptResponseCode
impl Unpin for OptResponseCode
impl UnsafeUnpin for OptResponseCode
impl UnwindSafe for OptResponseCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more