pub enum SocketAddr {
Ipv4(SocketAddrV4),
Domain(SocketDomain),
Ipv6(SocketAddrV6),
}
Expand description
Represents a socket address used by SOCKS5.
Variants§
Ipv4(SocketAddrV4)
A socket address using an IPv4 address.
Domain(SocketDomain)
A socket address using a domain name.
Ipv6(SocketAddrV6)
A socket address using an IPv6 address.
Implementations§
Trait Implementations§
Source§impl Clone for SocketAddr
impl Clone for SocketAddr
Source§fn clone(&self) -> SocketAddr
fn clone(&self) -> SocketAddr
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 SocketAddr
impl Debug for SocketAddr
Source§impl Display for SocketAddr
impl Display for SocketAddr
Source§impl From<SocketDomain> for SocketAddr
impl From<SocketDomain> for SocketAddr
Source§fn from(domain: SocketDomain) -> Self
fn from(domain: SocketDomain) -> Self
Converts to this type from the input type.
Source§impl FromStr for SocketAddr
impl FromStr for SocketAddr
Source§impl Hash for SocketAddr
impl Hash for SocketAddr
Source§impl PartialEq for SocketAddr
impl PartialEq for SocketAddr
impl Eq for SocketAddr
impl StructuralPartialEq for SocketAddr
Auto Trait Implementations§
impl Freeze for SocketAddr
impl RefUnwindSafe for SocketAddr
impl Send for SocketAddr
impl Sync for SocketAddr
impl Unpin for SocketAddr
impl UnwindSafe for SocketAddr
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