pub enum DnsDataType {
InAddr,
InAddr6,
U8,
U16,
U32,
Name,
Str,
Bin,
BinP,
Opt,
ABinP,
}Expand description
Data types for DNS resource record fields.
Returned by DnsRrKey::datatype() to indicate which getter/setter is
appropriate for a given key.
Variants§
InAddr
IPv4 address (struct in_addr).
InAddr6
IPv6 address (struct ares_in6_addr).
U8
8-bit unsigned integer.
U16
16-bit unsigned integer.
U32
32-bit unsigned integer.
Name
Domain name (null-terminated string).
Str
Null-terminated string.
Bin
Binary data.
BinP
Binary data, likely printable.
Opt
Array of options (16-bit key + binary value).
ABinP
Array of binary data, likely printable.
Trait Implementations§
Source§impl Clone for DnsDataType
impl Clone for DnsDataType
Source§fn clone(&self) -> DnsDataType
fn clone(&self) -> DnsDataType
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 DnsDataType
Source§impl Debug for DnsDataType
impl Debug for DnsDataType
impl Eq for DnsDataType
Source§impl From<ares_dns_datatype_t> for DnsDataType
impl From<ares_dns_datatype_t> for DnsDataType
Source§fn from(val: ares_dns_datatype_t) -> Self
fn from(val: ares_dns_datatype_t) -> Self
Converts to this type from the input type.
Source§impl Hash for DnsDataType
impl Hash for DnsDataType
Source§impl Ord for DnsDataType
impl Ord for DnsDataType
Source§fn cmp(&self, other: &DnsDataType) -> Ordering
fn cmp(&self, other: &DnsDataType) -> 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 DnsDataType
impl PartialEq for DnsDataType
Source§fn eq(&self, other: &DnsDataType) -> bool
fn eq(&self, other: &DnsDataType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DnsDataType
impl PartialOrd for DnsDataType
impl StructuralPartialEq for DnsDataType
Auto Trait Implementations§
impl Freeze for DnsDataType
impl RefUnwindSafe for DnsDataType
impl Send for DnsDataType
impl Sync for DnsDataType
impl Unpin for DnsDataType
impl UnsafeUnpin for DnsDataType
impl UnwindSafe for DnsDataType
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