Enum c_ares_sys::ares_dns_rec_type_t

source ·
#[repr(u32)]
pub enum ares_dns_rec_type_t {
Show 20 variants ARES_REC_TYPE_A = 1, ARES_REC_TYPE_NS = 2, ARES_REC_TYPE_CNAME = 5, ARES_REC_TYPE_SOA = 6, ARES_REC_TYPE_PTR = 12, ARES_REC_TYPE_HINFO = 13, ARES_REC_TYPE_MX = 15, ARES_REC_TYPE_TXT = 16, ARES_REC_TYPE_SIG = 24, ARES_REC_TYPE_AAAA = 28, ARES_REC_TYPE_SRV = 33, ARES_REC_TYPE_NAPTR = 35, ARES_REC_TYPE_OPT = 41, ARES_REC_TYPE_TLSA = 52, ARES_REC_TYPE_SVCB = 64, ARES_REC_TYPE_HTTPS = 65, ARES_REC_TYPE_ANY = 255, ARES_REC_TYPE_URI = 256, ARES_REC_TYPE_CAA = 257, ARES_REC_TYPE_RAW_RR = 65_536,
}
Expand description

DNS Record types handled by c-ares. Some record types may only be valid on requests (e.g. ARES_REC_TYPE_ANY), and some may only be valid on responses

Variants§

§

ARES_REC_TYPE_A = 1

< Host address.

§

ARES_REC_TYPE_NS = 2

< Authoritative server.

§

ARES_REC_TYPE_CNAME = 5

< Canonical name.

§

ARES_REC_TYPE_SOA = 6

< Start of authority zone.

§

ARES_REC_TYPE_PTR = 12

< Domain name pointer.

§

ARES_REC_TYPE_HINFO = 13

< Host information.

§

ARES_REC_TYPE_MX = 15

< Mail routing information.

§

ARES_REC_TYPE_TXT = 16

< Text strings.

§

ARES_REC_TYPE_SIG = 24

< RFC 2535 / RFC 2931. SIG Record

§

ARES_REC_TYPE_AAAA = 28

< RFC 3596. Ip6 Address.

§

ARES_REC_TYPE_SRV = 33

< RFC 2782. Server Selection.

§

ARES_REC_TYPE_NAPTR = 35

< RFC 3403. Naming Authority Pointer

§

ARES_REC_TYPE_OPT = 41

< RFC 6891. EDNS0 option (meta-RR)

§

ARES_REC_TYPE_TLSA = 52

< RFC 6698. DNS-Based Authentication of Named Entities (DANE) Transport Layer Security (TLS) Protocol: TLSA

§

ARES_REC_TYPE_SVCB = 64

< RFC 9460. General Purpose Service Binding

§

ARES_REC_TYPE_HTTPS = 65

< RFC 9460. Service Binding type for use with HTTPS

§

ARES_REC_TYPE_ANY = 255

< Wildcard match. Not response RR.

§

ARES_REC_TYPE_URI = 256

< RFC 7553. Uniform Resource Identifier

§

ARES_REC_TYPE_CAA = 257

< RFC 6844. Certification Authority Authorization.

§

ARES_REC_TYPE_RAW_RR = 65_536

< Used as an indicator that the RR record is not parsed, but provided in wire format

Trait Implementations§

source§

impl Clone for ares_dns_rec_type_t

source§

fn clone(&self) -> ares_dns_rec_type_t

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ares_dns_rec_type_t

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for ares_dns_rec_type_t

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ares_dns_rec_type_t

source§

fn eq(&self, other: &ares_dns_rec_type_t) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ares_dns_rec_type_t

source§

impl Eq for ares_dns_rec_type_t

source§

impl StructuralPartialEq for ares_dns_rec_type_t

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.