#[repr(transparent)]pub struct DnsAddressType(pub u8);Expand description
Whether the address is IPv4 or IPv6.
Tuple Fields§
§0: u8Implementations§
Source§impl DnsAddressType
impl DnsAddressType
Sourcepub const IPV4: DnsAddressType
pub const IPV4: DnsAddressType
DNS server address is IPv4.
Sourcepub const IPV6: DnsAddressType
pub const IPV6: DnsAddressType
DNS server address is IPv6.
Trait Implementations§
Source§impl Clone for DnsAddressType
impl Clone for DnsAddressType
Source§fn clone(&self) -> DnsAddressType
fn clone(&self) -> DnsAddressType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DnsAddressType
Source§impl Debug for DnsAddressType
impl Debug for DnsAddressType
impl Eq for DnsAddressType
Source§impl Hash for DnsAddressType
impl Hash for DnsAddressType
Source§impl Ord for DnsAddressType
impl Ord for DnsAddressType
Source§fn cmp(&self, other: &DnsAddressType) -> Ordering
fn cmp(&self, other: &DnsAddressType) -> Ordering
1.21.0 (const: unstable)§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 DnsAddressType
impl PartialEq for DnsAddressType
Source§impl PartialOrd for DnsAddressType
impl PartialOrd for DnsAddressType
impl StructuralPartialEq for DnsAddressType
Auto Trait Implementations§
impl Freeze for DnsAddressType
impl RefUnwindSafe for DnsAddressType
impl Send for DnsAddressType
impl Sync for DnsAddressType
impl Unpin for DnsAddressType
impl UnsafeUnpin for DnsAddressType
impl UnwindSafe for DnsAddressType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)