Enum dns_lookup::AddrFamily
source · pub enum AddrFamily {
Unix,
Inet,
Inet6,
}
Expand description
Address Family
Cross platform enum of common Address Families. For missing types use
the libc
and windows-sys
crates, depending on platform.
Variants§
Trait Implementations§
source§impl Clone for AddrFamily
impl Clone for AddrFamily
source§fn clone(&self) -> AddrFamily
fn clone(&self) -> AddrFamily
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 AddrFamily
impl Debug for AddrFamily
source§impl From<AddrFamily> for i32
impl From<AddrFamily> for i32
source§fn from(sock: AddrFamily) -> i32
fn from(sock: AddrFamily) -> i32
Converts to this type from the input type.
source§impl PartialEq<AddrFamily> for i32
impl PartialEq<AddrFamily> for i32
source§fn eq(&self, other: &AddrFamily) -> bool
fn eq(&self, other: &AddrFamily) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<i32> for AddrFamily
impl PartialEq<i32> for AddrFamily
source§impl PartialEq for AddrFamily
impl PartialEq for AddrFamily
source§fn eq(&self, other: &AddrFamily) -> bool
fn eq(&self, other: &AddrFamily) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AddrFamily
impl Eq for AddrFamily
impl StructuralEq for AddrFamily
impl StructuralPartialEq for AddrFamily
Auto Trait Implementations§
impl RefUnwindSafe for AddrFamily
impl Send for AddrFamily
impl Sync for AddrFamily
impl Unpin for AddrFamily
impl UnwindSafe for AddrFamily
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