pub enum RCode {
Show 25 variants
NoError,
FormErr,
ServFail,
NXDomain,
NotImp,
Refused,
YXDomain,
YXRRSet,
NXRRSet,
NotAuth,
NotZone,
DSOTYPENI,
Unassigned12,
Unassigned13,
Unassigned14,
Unassigned15,
BADVERS,
BADKEY,
BADTIME,
BADMODE,
BADNAME,
BADALG,
BADTRUNC,
BADCOOKIE,
Unknown,
}Expand description
These codes were obtained from https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-6.
Variants§
NoError
No Error.
FormErr
Format Error.
ServFail
Server Failure.
NXDomain
Non-Existent Domain.
NotImp
Not Implemented. Cloudflare returns this for all ANY DNS requests.
Refused
Query Refused.
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.
NotZone
Name not contained in zone.
DSOTYPENI
DSO-TYPE Not Implemented.
Unassigned12
Unassigned.
Unassigned13
Unassigned.
Unassigned14
Unassigned.
Unassigned15
Unassigned.
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.
Unknown
Unknown.
Trait Implementations§
Source§impl FromPrimitive for RCode
impl FromPrimitive for RCode
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreAuto Trait Implementations§
impl Freeze for RCode
impl RefUnwindSafe for RCode
impl Send for RCode
impl Sync for RCode
impl Unpin for RCode
impl UnwindSafe for RCode
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