Enum socks5_protocol::Address [−][src]
pub enum Address { SocketAddr(SocketAddr), Domain(String, u16), }
Expand description
Address type in socks5.
Variants
SocketAddr(SocketAddr)
Expand description
SocketAddr
Expand description
Domain
Implementations
impl Address
[src]
impl Address
[src]pub fn to_socket_addr(self) -> Result<SocketAddr>
[src]
pub fn to_socket_addr(self) -> Result<SocketAddr>
[src]Convert Address
to SocketAddr
. If Address
is a domain, return std::io::ErrorKind::InvalidInput
Trait Implementations
impl From<SocketAddr> for Address
[src]
impl From<SocketAddr> for Address
[src]fn from(addr: SocketAddr) -> Self
[src]
fn from(addr: SocketAddr) -> Self
[src]Performs the conversion.