pub enum DnsRecordType {
Show 21 variants
A,
NS,
CNAME,
SOA,
PTR,
HINFO,
MX,
TXT,
SIG,
AAAA,
SRV,
NAPTR,
OPT,
TLSA,
SVCB,
HTTPS,
ANY,
URI,
CAA,
RAW_RR,
UNKNOWN(u32),
}Expand description
DNS record types handled by c-ares.
Variants§
A
Host address (A).
NS
Authoritative server (NS).
CNAME
Canonical name (CNAME).
SOA
Start of authority zone (SOA).
PTR
Domain name pointer (PTR).
HINFO
Host information (HINFO).
MX
Mail routing information (MX).
TXT
Text strings (TXT).
SIG
SIG record (RFC 2535 / RFC 2931).
AAAA
IPv6 address (AAAA, RFC 3596).
SRV
Server selection (SRV, RFC 2782).
NAPTR
Naming authority pointer (NAPTR, RFC 3403).
OPT
EDNS0 option (OPT, RFC 6891).
TLSA
DANE TLSA (RFC 6698).
SVCB
General purpose service binding (SVCB, RFC 9460).
HTTPS
HTTPS service binding (RFC 9460).
ANY
Wildcard match (requests only).
URI
URI (RFC 7553).
CAA
Certification authority authorization (CAA, RFC 6844).
RAW_RR
Raw/unparsed RR record.
UNKNOWN(u32)
Unknown record type, carrying the raw wire value.
Trait Implementations§
Source§impl Clone for DnsRecordType
impl Clone for DnsRecordType
Source§fn clone(&self) -> DnsRecordType
fn clone(&self) -> DnsRecordType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DnsRecordType
Source§impl Debug for DnsRecordType
impl Debug for DnsRecordType
Source§impl Display for DnsRecordType
impl Display for DnsRecordType
impl Eq for DnsRecordType
Source§impl From<DnsRecordType> for ares_dns_rec_type_t
impl From<DnsRecordType> for ares_dns_rec_type_t
Source§fn from(val: DnsRecordType) -> Self
fn from(val: DnsRecordType) -> Self
Converts to this type from the input type.
Source§impl From<ares_dns_rec_type_t> for DnsRecordType
impl From<ares_dns_rec_type_t> for DnsRecordType
Source§fn from(val: ares_dns_rec_type_t) -> Self
fn from(val: ares_dns_rec_type_t) -> Self
Converts to this type from the input type.
Source§impl FromStr for DnsRecordType
impl FromStr for DnsRecordType
Source§impl Hash for DnsRecordType
impl Hash for DnsRecordType
Source§impl Ord for DnsRecordType
impl Ord for DnsRecordType
Source§fn cmp(&self, other: &DnsRecordType) -> Ordering
fn cmp(&self, other: &DnsRecordType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DnsRecordType
impl PartialEq for DnsRecordType
Source§fn eq(&self, other: &DnsRecordType) -> bool
fn eq(&self, other: &DnsRecordType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DnsRecordType
impl PartialOrd for DnsRecordType
impl StructuralPartialEq for DnsRecordType
Auto Trait Implementations§
impl Freeze for DnsRecordType
impl RefUnwindSafe for DnsRecordType
impl Send for DnsRecordType
impl Sync for DnsRecordType
impl Unpin for DnsRecordType
impl UnsafeUnpin for DnsRecordType
impl UnwindSafe for DnsRecordType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more