#[repr(u8)]pub enum ResponseCode {
NoError,
FormatError,
ServerFailure,
NameError,
NotImplemented,
Refused,
YxDomain,
YxRRSet,
NxRRSet,
NotAuth,
NotZone,
Other(u8),
}Variants§
NoError
FormatError
ServerFailure
NameError
NotImplemented
Refused
YxDomain
YxRRSet
NxRRSet
NotAuth
NotZone
Other(u8)
Trait Implementations§
Source§impl Clone for ResponseCode
impl Clone for ResponseCode
Source§fn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseCode
impl Debug for ResponseCode
Source§impl Default for ResponseCode
impl Default for ResponseCode
Source§fn default() -> ResponseCode
fn default() -> ResponseCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseCode
impl<'de> Deserialize<'de> for ResponseCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ResponseCode> for u8
impl From<ResponseCode> for u8
Source§fn from(value: ResponseCode) -> u8
fn from(value: ResponseCode) -> u8
Converts to this type from the input type.
Source§impl From<u8> for ResponseCode
impl From<u8> for ResponseCode
Source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
Source§impl Serialize for ResponseCode
impl Serialize for ResponseCode
impl Copy for ResponseCode
impl Eq for ResponseCode
impl StructuralPartialEq for ResponseCode
Auto Trait Implementations§
impl Freeze for ResponseCode
impl RefUnwindSafe for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Unpin for ResponseCode
impl UnwindSafe for ResponseCode
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