pub enum AddressFamily {
IPV4,
IPV6,
}Expand description
The address family of a socket
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§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 Display for AddressFamily
impl Display for AddressFamily
Source§impl From<&IpAddr> for AddressFamily
impl From<&IpAddr> for AddressFamily
Source§fn from(value: &IpAddr) -> AddressFamily
fn from(value: &IpAddr) -> AddressFamily
Converts to this type from the input type.
Source§impl From<&Ipv4Addr> for AddressFamily
impl From<&Ipv4Addr> for AddressFamily
Source§fn from(_value: &Ipv4Addr) -> AddressFamily
fn from(_value: &Ipv4Addr) -> AddressFamily
Converts to this type from the input type.
Source§impl From<&Ipv6Addr> for AddressFamily
impl From<&Ipv6Addr> for AddressFamily
Source§fn from(_value: &Ipv6Addr) -> AddressFamily
fn from(_value: &Ipv6Addr) -> AddressFamily
Converts to this type from the input type.
Source§impl From<&SocketAddr> for AddressFamily
impl From<&SocketAddr> for AddressFamily
Source§fn from(value: &SocketAddr) -> AddressFamily
fn from(value: &SocketAddr) -> AddressFamily
Converts to this type from the input type.
Source§impl From<&SocketAddrV4> for AddressFamily
impl From<&SocketAddrV4> for AddressFamily
Source§fn from(_value: &SocketAddrV4) -> AddressFamily
fn from(_value: &SocketAddrV4) -> AddressFamily
Converts to this type from the input type.
Source§impl From<&SocketAddrV6> for AddressFamily
impl From<&SocketAddrV6> for AddressFamily
Source§fn from(_value: &SocketAddrV6) -> AddressFamily
fn from(_value: &SocketAddrV6) -> AddressFamily
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§
§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)