pub enum DnsHeaderResponseCode {
Show 18 variants
NoError,
FormatError,
ServerFailure,
NonExistentDomain,
NotImplemented,
Refused,
ExistentDomain,
ExistentRrSet,
NonExistentRrSet,
NotAuthoritative,
NotZone,
BadOptVersionOrBadSignature,
BadKey,
BadTime,
BadMode,
BadName,
BadAlg,
Reserved(u8),
}Expand description
A DNS response code.
Variants§
NoError
FormatError
ServerFailure
NonExistentDomain
NotImplemented
Refused
ExistentDomain
ExistentRrSet
NonExistentRrSet
NotAuthoritative
NotZone
BadOptVersionOrBadSignature
BadKey
BadTime
BadMode
BadName
BadAlg
Reserved(u8)
Trait Implementations§
Source§impl Clone for DnsHeaderResponseCode
impl Clone for DnsHeaderResponseCode
Source§fn clone(&self) -> DnsHeaderResponseCode
fn clone(&self) -> DnsHeaderResponseCode
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 DnsHeaderResponseCode
impl Debug for DnsHeaderResponseCode
Source§impl From<DnsHeaderResponseCode> for u8
impl From<DnsHeaderResponseCode> for u8
Source§fn from(r: DnsHeaderResponseCode) -> Self
fn from(r: DnsHeaderResponseCode) -> Self
Converts to this type from the input type.
Source§impl From<u8> for DnsHeaderResponseCode
impl From<u8> for DnsHeaderResponseCode
Source§impl PartialEq for DnsHeaderResponseCode
impl PartialEq for DnsHeaderResponseCode
impl Copy for DnsHeaderResponseCode
impl StructuralPartialEq for DnsHeaderResponseCode
Auto Trait Implementations§
impl Freeze for DnsHeaderResponseCode
impl RefUnwindSafe for DnsHeaderResponseCode
impl Send for DnsHeaderResponseCode
impl Sync for DnsHeaderResponseCode
impl Unpin for DnsHeaderResponseCode
impl UnwindSafe for DnsHeaderResponseCode
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