#[repr(u32)]pub enum ares_dns_opt_datatype_t {
ARES_OPT_DATATYPE_NONE = 1,
ARES_OPT_DATATYPE_STR_LIST = 2,
ARES_OPT_DATATYPE_U8_LIST = 3,
ARES_OPT_DATATYPE_U16 = 4,
ARES_OPT_DATATYPE_U16_LIST = 5,
ARES_OPT_DATATYPE_U32 = 6,
ARES_OPT_DATATYPE_U32_LIST = 7,
ARES_OPT_DATATYPE_INADDR4_LIST = 8,
ARES_OPT_DATATYPE_INADDR6_LIST = 9,
ARES_OPT_DATATYPE_BIN = 10,
ARES_OPT_DATATYPE_NAME = 11,
}
Expand description
Data type for option records for keys like ARES_RR_OPT_OPTIONS and ARES_RR_HTTPS_PARAMS returned by ares_dns_opt_get_datatype()
Variants§
ARES_OPT_DATATYPE_NONE = 1
No value allowed for this option
ARES_OPT_DATATYPE_STR_LIST = 2
List of strings, each prefixed with a single octet representing the length
ARES_OPT_DATATYPE_U8_LIST = 3
List of 8bit integers, concatenated
ARES_OPT_DATATYPE_U16 = 4
16bit integer in network byte order
ARES_OPT_DATATYPE_U16_LIST = 5
list of 16bit integer in network byte order, concatenated.
ARES_OPT_DATATYPE_U32 = 6
32bit integer in network byte order
ARES_OPT_DATATYPE_U32_LIST = 7
list 32bit integer in network byte order, concatenated
ARES_OPT_DATATYPE_INADDR4_LIST = 8
List of ipv4 addresses in network byte order, concatenated
ARES_OPT_DATATYPE_INADDR6_LIST = 9
List of ipv6 addresses in network byte order, concatenated
ARES_OPT_DATATYPE_BIN = 10
Binary Data
ARES_OPT_DATATYPE_NAME = 11
DNS Domain Name Format
Trait Implementations§
source§impl Clone for ares_dns_opt_datatype_t
impl Clone for ares_dns_opt_datatype_t
source§fn clone(&self) -> ares_dns_opt_datatype_t
fn clone(&self) -> ares_dns_opt_datatype_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_opt_datatype_t
impl Debug for ares_dns_opt_datatype_t
source§impl Hash for ares_dns_opt_datatype_t
impl Hash for ares_dns_opt_datatype_t
source§impl PartialEq for ares_dns_opt_datatype_t
impl PartialEq for ares_dns_opt_datatype_t
source§fn eq(&self, other: &ares_dns_opt_datatype_t) -> bool
fn eq(&self, other: &ares_dns_opt_datatype_t) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ares_dns_opt_datatype_t
impl Eq for ares_dns_opt_datatype_t
impl StructuralPartialEq for ares_dns_opt_datatype_t
Auto Trait Implementations§
impl Freeze for ares_dns_opt_datatype_t
impl RefUnwindSafe for ares_dns_opt_datatype_t
impl Send for ares_dns_opt_datatype_t
impl Sync for ares_dns_opt_datatype_t
impl Unpin for ares_dns_opt_datatype_t
impl UnwindSafe for ares_dns_opt_datatype_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