pub enum SocketFamily {
IPV4,
IPV6,
}
Expand description
Represents the socket address family (IPv4 or IPv6)
Variants§
Implementations§
Source§impl SocketFamily
impl SocketFamily
Sourcepub fn from_socket_addr(addr: &SocketAddr) -> Self
pub fn from_socket_addr(addr: &SocketAddr) -> Self
Returns the socket family of the socket address.
Trait Implementations§
Source§impl Clone for SocketFamily
impl Clone for SocketFamily
Source§fn clone(&self) -> SocketFamily
fn clone(&self) -> SocketFamily
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 SocketFamily
impl Debug for SocketFamily
Source§impl PartialEq for SocketFamily
impl PartialEq for SocketFamily
impl Copy for SocketFamily
impl Eq for SocketFamily
impl StructuralPartialEq for SocketFamily
Auto Trait Implementations§
impl Freeze for SocketFamily
impl RefUnwindSafe for SocketFamily
impl Send for SocketFamily
impl Sync for SocketFamily
impl Unpin for SocketFamily
impl UnwindSafe for SocketFamily
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