pub enum DnsResponseCode {
NoError,
FormatError,
ServerFailure,
NameError,
NotImplemented,
Refused,
Reserved(u8),
}
Expand description
RCODE
Response code - this 4 bit field is set as part of responses. The values have the following interpretation:
0
No error condition1
Format error - The name server was unable to interpret the query.2
Server failure - The name server was unable to process this query due to a problem with the name server.3
Name Error - Meaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist.4
Not Implemented - The name server does not support the requested kind of query.5
Refused - The name server refuses to perform the specified operation for policy reasons. For example, a name server may not wish to provide the information to the particular requester, or a name server may not wish to perform a particular operation (e.g., zone transfer) for particular data.6-15
Reserved for future use.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DnsResponseCode
impl Clone for DnsResponseCode
Source§fn clone(&self) -> DnsResponseCode
fn clone(&self) -> DnsResponseCode
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 DnsResponseCode
impl Debug for DnsResponseCode
Source§impl Hash for DnsResponseCode
impl Hash for DnsResponseCode
Source§impl PartialEq for DnsResponseCode
impl PartialEq for DnsResponseCode
impl Copy for DnsResponseCode
impl Eq for DnsResponseCode
impl StructuralPartialEq for DnsResponseCode
Auto Trait Implementations§
impl Freeze for DnsResponseCode
impl RefUnwindSafe for DnsResponseCode
impl Send for DnsResponseCode
impl Sync for DnsResponseCode
impl Unpin for DnsResponseCode
impl UnwindSafe for DnsResponseCode
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