pub enum DnsOptDataType {
None,
StrList,
U8List,
U16,
U16List,
U32,
U32List,
InAddr4List,
InAddr6List,
Bin,
Name,
}Expand description
Data type for option records for keys like OPT_OPTIONS and
HTTPS_PARAMS.
Returned by DnsRr::opt_datatype() to indicate the best match for
interpreting an option record value.
Variants§
None
No value allowed for this option.
StrList
List of strings, each prefixed with a single octet representing the length.
U8List
List of 8-bit integers, concatenated.
U16
16-bit integer in network byte order.
U16List
List of 16-bit integers in network byte order, concatenated.
U32
32-bit integer in network byte order.
U32List
List of 32-bit integers in network byte order, concatenated.
InAddr4List
List of IPv4 addresses in network byte order, concatenated.
InAddr6List
List of IPv6 addresses in network byte order, concatenated.
Bin
Binary data.
Name
DNS domain name format.
Trait Implementations§
Source§impl Clone for DnsOptDataType
impl Clone for DnsOptDataType
Source§fn clone(&self) -> DnsOptDataType
fn clone(&self) -> DnsOptDataType
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 DnsOptDataType
Source§impl Debug for DnsOptDataType
impl Debug for DnsOptDataType
impl Eq for DnsOptDataType
Source§impl From<ares_dns_opt_datatype_t> for DnsOptDataType
impl From<ares_dns_opt_datatype_t> for DnsOptDataType
Source§fn from(val: ares_dns_opt_datatype_t) -> Self
fn from(val: ares_dns_opt_datatype_t) -> Self
Converts to this type from the input type.
Source§impl Hash for DnsOptDataType
impl Hash for DnsOptDataType
Source§impl Ord for DnsOptDataType
impl Ord for DnsOptDataType
Source§fn cmp(&self, other: &DnsOptDataType) -> Ordering
fn cmp(&self, other: &DnsOptDataType) -> 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 DnsOptDataType
impl PartialEq for DnsOptDataType
Source§fn eq(&self, other: &DnsOptDataType) -> bool
fn eq(&self, other: &DnsOptDataType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DnsOptDataType
impl PartialOrd for DnsOptDataType
impl StructuralPartialEq for DnsOptDataType
Auto Trait Implementations§
impl Freeze for DnsOptDataType
impl RefUnwindSafe for DnsOptDataType
impl Send for DnsOptDataType
impl Sync for DnsOptDataType
impl Unpin for DnsOptDataType
impl UnsafeUnpin for DnsOptDataType
impl UnwindSafe for DnsOptDataType
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