SocketAddr
Type of socket addresses, and its functions.
case V4(SocketAddrV4)case V6(SocketAddrV6)Type of socket addresses.
A socket address is either an IPv4 or an IPv6 socket address.
Instances
Definitions
Attempts to parse the given String x as a SocketAddr.
Returns Some(socket) if the string was successfully parsed. Otherwise returns None.