Enum sawp_dns::enums::OptResponseCode
source · [−]#[repr(u16)]
pub enum OptResponseCode {
Show 14 variants
NOERROR,
FORMATERROR,
SERVERFAILURE,
NAMEERROR,
NOTIMPLEMENTED,
REFUSED,
YXDOMAIN,
YXRRSET,
NXRRSET,
NOTAUTH,
NOTZONE,
BADVERSION,
BADCOOKIE,
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.
BADVERSION
Bad OPT version
BADCOOKIE
Bad/missing server cookie
UNKNOWN
Implementations
Trait Implementations
sourceimpl Clone for OptResponseCode
impl Clone for OptResponseCode
sourcefn clone(&self) -> OptResponseCode
fn clone(&self) -> OptResponseCode
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 OptResponseCode
impl Debug for OptResponseCode
sourceimpl PartialEq<OptResponseCode> for OptResponseCode
impl PartialEq<OptResponseCode> for OptResponseCode
sourceimpl TryFrom<u16> for OptResponseCode
impl TryFrom<u16> for OptResponseCode
type Error = TryFromPrimitiveError<OptResponseCode>
type Error = TryFromPrimitiveError<OptResponseCode>
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 OptResponseCode
impl TryFromPrimitive for OptResponseCode
type Primitive = u16
const NAME: &'static str = "OptResponseCode"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for OptResponseCode
impl StructuralPartialEq for OptResponseCode
Auto Trait Implementations
impl RefUnwindSafe for OptResponseCode
impl Send for OptResponseCode
impl Sync for OptResponseCode
impl Unpin for OptResponseCode
impl UnwindSafe for OptResponseCode
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