pub enum AddressFamily {
Unspec,
Unix,
Inet,
Inet6,
Custom(i32),
}
Expand description
The address family to request when resolving the name.
Variants§
Unspec
No preference.
Unix
Request UNIX-family address.
Inet
Request IPv4-family address.
Inet6
Request IPv6-family address.
Custom(i32)
Request custom address family.
Trait Implementations§
Source§impl Clone for AddressFamily
impl Clone for AddressFamily
Source§fn clone(&self) -> AddressFamily
fn clone(&self) -> AddressFamily
Returns a duplicate 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 AddressFamily
impl Debug for AddressFamily
Source§impl Default for AddressFamily
impl Default for AddressFamily
Source§impl From<AddrFamily> for AddressFamily
impl From<AddrFamily> for AddressFamily
Source§fn from(af: AddrFamily) -> Self
fn from(af: AddrFamily) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddressFamily
impl PartialEq for AddressFamily
impl Copy for AddressFamily
impl Eq for AddressFamily
impl StructuralPartialEq for AddressFamily
Auto Trait Implementations§
impl Freeze for AddressFamily
impl RefUnwindSafe for AddressFamily
impl Send for AddressFamily
impl Sync for AddressFamily
impl Unpin for AddressFamily
impl UnwindSafe for AddressFamily
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