Enum c_ares_sys::ares_dns_flags_t
source · #[repr(u32)]pub enum ares_dns_flags_t {
ARES_FLAG_QR = 1,
ARES_FLAG_AA = 2,
ARES_FLAG_TC = 4,
ARES_FLAG_RD = 8,
ARES_FLAG_RA = 16,
ARES_FLAG_AD = 32,
ARES_FLAG_CD = 64,
}
Expand description
DNS Header flags
Variants§
ARES_FLAG_QR = 1
< QR. If set, is a response
ARES_FLAG_AA = 2
< Authoritative Answer. If set, is authoritative
ARES_FLAG_TC = 4
< Truncation. If set, is truncated response
ARES_FLAG_RD = 8
< Recursion Desired. If set, recursion is desired
ARES_FLAG_RA = 16
< Recursion Available. If set, server supports recursion
ARES_FLAG_AD = 32
< RFC 2065. Authentic Data bit indicates in a response that the data included has been verified by the server providing it
ARES_FLAG_CD = 64
< RFC 2065. Checking Disabled bit indicates in a query that non-verified data is acceptable to the resolver sending the query.
Trait Implementations§
source§impl Clone for ares_dns_flags_t
impl Clone for ares_dns_flags_t
source§fn clone(&self) -> ares_dns_flags_t
fn clone(&self) -> ares_dns_flags_t
Returns a copy 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 ares_dns_flags_t
impl Debug for ares_dns_flags_t
source§impl Hash for ares_dns_flags_t
impl Hash for ares_dns_flags_t
source§impl PartialEq for ares_dns_flags_t
impl PartialEq for ares_dns_flags_t
source§fn eq(&self, other: &ares_dns_flags_t) -> bool
fn eq(&self, other: &ares_dns_flags_t) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ares_dns_flags_t
impl Eq for ares_dns_flags_t
impl StructuralPartialEq for ares_dns_flags_t
Auto Trait Implementations§
impl Freeze for ares_dns_flags_t
impl RefUnwindSafe for ares_dns_flags_t
impl Send for ares_dns_flags_t
impl Sync for ares_dns_flags_t
impl Unpin for ares_dns_flags_t
impl UnwindSafe for ares_dns_flags_t
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