pub enum AddressFamily {
Unspec,
Inet4,
Inet6,
}Expand description
IP address family preference for a source.
Variants§
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 (const: unstable) · 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§fn default() -> AddressFamily
fn default() -> AddressFamily
Returns the “default value” for a type. Read more
Source§impl PartialEq for AddressFamily
impl PartialEq for AddressFamily
Source§fn eq(&self, other: &AddressFamily) -> bool
fn eq(&self, other: &AddressFamily) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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