Enum c_ares_sys::ares_dns_rr_key_t

source ·
#[repr(u32)]
pub enum ares_dns_rr_key_t {
Show 58 variants ARES_RR_A_ADDR = 101, ARES_RR_NS_NSDNAME = 201, ARES_RR_CNAME_CNAME = 501, ARES_RR_SOA_MNAME = 601, ARES_RR_SOA_RNAME = 602, ARES_RR_SOA_SERIAL = 603, ARES_RR_SOA_REFRESH = 604, ARES_RR_SOA_RETRY = 605, ARES_RR_SOA_EXPIRE = 606, ARES_RR_SOA_MINIMUM = 607, ARES_RR_PTR_DNAME = 1_201, ARES_RR_HINFO_CPU = 1_301, ARES_RR_HINFO_OS = 1_302, ARES_RR_MX_PREFERENCE = 1_501, ARES_RR_MX_EXCHANGE = 1_502, ARES_RR_TXT_DATA = 1_601, ARES_RR_SIG_TYPE_COVERED = 2_401, ARES_RR_SIG_ALGORITHM = 2_402, ARES_RR_SIG_LABELS = 2_403, ARES_RR_SIG_ORIGINAL_TTL = 2_404, ARES_RR_SIG_EXPIRATION = 2_405, ARES_RR_SIG_INCEPTION = 2_406, ARES_RR_SIG_KEY_TAG = 2_407, ARES_RR_SIG_SIGNERS_NAME = 2_408, ARES_RR_SIG_SIGNATURE = 2_409, ARES_RR_AAAA_ADDR = 2_801, ARES_RR_SRV_PRIORITY = 3_302, ARES_RR_SRV_WEIGHT = 3_303, ARES_RR_SRV_PORT = 3_304, ARES_RR_SRV_TARGET = 3_305, ARES_RR_NAPTR_ORDER = 3_501, ARES_RR_NAPTR_PREFERENCE = 3_502, ARES_RR_NAPTR_FLAGS = 3_503, ARES_RR_NAPTR_SERVICES = 3_504, ARES_RR_NAPTR_REGEXP = 3_505, ARES_RR_NAPTR_REPLACEMENT = 3_506, ARES_RR_OPT_UDP_SIZE = 4_101, ARES_RR_OPT_VERSION = 4_103, ARES_RR_OPT_FLAGS = 4_104, ARES_RR_OPT_OPTIONS = 4_105, ARES_RR_TLSA_CERT_USAGE = 5_201, ARES_RR_TLSA_SELECTOR = 5_202, ARES_RR_TLSA_MATCH = 5_203, ARES_RR_TLSA_DATA = 5_204, ARES_RR_SVCB_PRIORITY = 6_401, ARES_RR_SVCB_TARGET = 6_402, ARES_RR_SVCB_PARAMS = 6_403, ARES_RR_HTTPS_PRIORITY = 6_501, ARES_RR_HTTPS_TARGET = 6_502, ARES_RR_HTTPS_PARAMS = 6_503, ARES_RR_URI_PRIORITY = 25_601, ARES_RR_URI_WEIGHT = 25_602, ARES_RR_URI_TARGET = 25_603, ARES_RR_CAA_CRITICAL = 25_701, ARES_RR_CAA_TAG = 25_702, ARES_RR_CAA_VALUE = 25_703, ARES_RR_RAW_RR_TYPE = 6_553_601, ARES_RR_RAW_RR_DATA = 6_553_602,
}
Expand description

Keys used for all RR Types. We take the record type and multiply by 100 to ensure we have a proper offset between keys so we can keep these sorted

Variants§

§

ARES_RR_A_ADDR = 101

A Record. Address. Datatype: INADDR

§

ARES_RR_NS_NSDNAME = 201

NS Record. Name. Datatype: NAME

§

ARES_RR_CNAME_CNAME = 501

CNAME Record. CName. Datatype: NAME

§

ARES_RR_SOA_MNAME = 601

SOA Record. MNAME, Primary Source of Data. Datatype: NAME

§

ARES_RR_SOA_RNAME = 602

SOA Record. RNAME, Mailbox of person responsible. Datatype: NAME

§

ARES_RR_SOA_SERIAL = 603

SOA Record. Serial, version. Datatype: U32

§

ARES_RR_SOA_REFRESH = 604

SOA Record. Refresh, zone refersh interval. Datatype: U32

§

ARES_RR_SOA_RETRY = 605

SOA Record. Retry, failed refresh retry interval. Datatype: U32

§

ARES_RR_SOA_EXPIRE = 606

SOA Record. Expire, upper limit on authority. Datatype: U32

§

ARES_RR_SOA_MINIMUM = 607

SOA Record. Minimum, RR TTL. Datatype: U32

§

ARES_RR_PTR_DNAME = 1_201

PTR Record. DNAME, pointer domain. Datatype: NAME

§

ARES_RR_HINFO_CPU = 1_301

HINFO Record. CPU. Datatype: STR

§

ARES_RR_HINFO_OS = 1_302

HINFO Record. OS. Datatype: STR

§

ARES_RR_MX_PREFERENCE = 1_501

MX Record. Preference. Datatype: U16

§

ARES_RR_MX_EXCHANGE = 1_502

MX Record. Exchange, domain. Datatype: NAME

§

ARES_RR_TXT_DATA = 1_601

TXT Record. Data. Datatype: BINP

§

ARES_RR_SIG_TYPE_COVERED = 2_401

SIG Record. Type Covered. Datatype: U16

§

ARES_RR_SIG_ALGORITHM = 2_402

SIG Record. Algorithm. Datatype: U8

§

ARES_RR_SIG_LABELS = 2_403

SIG Record. Labels. Datatype: U8

§

ARES_RR_SIG_ORIGINAL_TTL = 2_404

SIG Record. Original TTL. Datatype: U32

§

ARES_RR_SIG_EXPIRATION = 2_405

SIG Record. Signature Expiration. Datatype: U32

§

ARES_RR_SIG_INCEPTION = 2_406

SIG Record. Signature Inception. Datatype: U32

§

ARES_RR_SIG_KEY_TAG = 2_407

SIG Record. Key Tag. Datatype: U16

§

ARES_RR_SIG_SIGNERS_NAME = 2_408

SIG Record. Signers Name. Datatype: NAME

§

ARES_RR_SIG_SIGNATURE = 2_409

SIG Record. Signature. Datatype: BIN

§

ARES_RR_AAAA_ADDR = 2_801

AAAA Record. Address. Datatype: INADDR6

§

ARES_RR_SRV_PRIORITY = 3_302

SRV Record. Priority. Datatype: U16

§

ARES_RR_SRV_WEIGHT = 3_303

SRV Record. Weight. Datatype: U16

§

ARES_RR_SRV_PORT = 3_304

SRV Record. Port. Datatype: U16

§

ARES_RR_SRV_TARGET = 3_305

SRV Record. Target domain. Datatype: NAME

§

ARES_RR_NAPTR_ORDER = 3_501

NAPTR Record. Order. Datatype: U16

§

ARES_RR_NAPTR_PREFERENCE = 3_502

NAPTR Record. Preference. Datatype: U16

§

ARES_RR_NAPTR_FLAGS = 3_503

NAPTR Record. Flags. Datatype: STR

§

ARES_RR_NAPTR_SERVICES = 3_504

NAPTR Record. Services. Datatype: STR

§

ARES_RR_NAPTR_REGEXP = 3_505

NAPTR Record. Regexp. Datatype: STR

§

ARES_RR_NAPTR_REPLACEMENT = 3_506

NAPTR Record. Replacement. Datatype: NAME

§

ARES_RR_OPT_UDP_SIZE = 4_101

OPT Record. UDP Size. Datatype: U16

§

ARES_RR_OPT_VERSION = 4_103

OPT Record. Version. Datatype: U8

§

ARES_RR_OPT_FLAGS = 4_104

OPT Record. Flags. Datatype: U16

§

ARES_RR_OPT_OPTIONS = 4_105

OPT Record. Options. Datatype: OPT

§

ARES_RR_TLSA_CERT_USAGE = 5_201

TLSA Record. Certificate Usage. Datatype: U8

§

ARES_RR_TLSA_SELECTOR = 5_202

TLSA Record. Selector. Datatype: U8

§

ARES_RR_TLSA_MATCH = 5_203

TLSA Record. Matching Type. Datatype: U8

§

ARES_RR_TLSA_DATA = 5_204

TLSA Record. Certificate Association Data. Datatype: BIN

§

ARES_RR_SVCB_PRIORITY = 6_401

SVCB Record. SvcPriority. Datatype: U16

§

ARES_RR_SVCB_TARGET = 6_402

SVCB Record. TargetName. Datatype: NAME

§

ARES_RR_SVCB_PARAMS = 6_403

SVCB Record. SvcParams. Datatype: OPT

§

ARES_RR_HTTPS_PRIORITY = 6_501

HTTPS Record. SvcPriority. Datatype: U16

§

ARES_RR_HTTPS_TARGET = 6_502

HTTPS Record. TargetName. Datatype: NAME

§

ARES_RR_HTTPS_PARAMS = 6_503

HTTPS Record. SvcParams. Datatype: OPT

§

ARES_RR_URI_PRIORITY = 25_601

URI Record. Priority. Datatype: U16

§

ARES_RR_URI_WEIGHT = 25_602

URI Record. Weight. Datatype: U16

§

ARES_RR_URI_TARGET = 25_603

URI Record. Target domain. Datatype: NAME

§

ARES_RR_CAA_CRITICAL = 25_701

CAA Record. Critical flag. Datatype: U8

§

ARES_RR_CAA_TAG = 25_702

CAA Record. Tag/Property. Datatype: STR

§

ARES_RR_CAA_VALUE = 25_703

CAA Record. Value. Datatype: BINP

§

ARES_RR_RAW_RR_TYPE = 6_553_601

RAW Record. RR Type. Datatype: U16

§

ARES_RR_RAW_RR_DATA = 6_553_602

RAW Record. RR Data. Datatype: BIN

Trait Implementations§

source§

impl Clone for ares_dns_rr_key_t

source§

fn clone(&self) -> ares_dns_rr_key_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_rr_key_t

source§

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

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

impl Hash for ares_dns_rr_key_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_rr_key_t

source§

fn eq(&self, other: &ares_dns_rr_key_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_rr_key_t

source§

impl Eq for ares_dns_rr_key_t

source§

impl StructuralPartialEq for ares_dns_rr_key_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.