Enum shadowsocks::relay::socks5::Address [] [src]

pub enum Address {
    SocketAddress(SocketAddr),
    DomainNameAddress(Stringu16),
}

SOCKS5 address type

Variants

Socket address (IP Address)

Domain name address

Methods

impl Address
[src]

Trait Implementations

impl Clone for Address
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Address
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Address
[src]

impl Hash for Address
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Address
[src]

Formats the value using the given formatter.

impl Display for Address
[src]

Formats the value using the given formatter.

impl ToSocketAddrs for Address
[src]

Returned iterator over socket addresses which this type may correspond to. Read more

Converts this object to an iterator of resolved SocketAddrs. Read more

impl From<SocketAddr> for Address
[src]

Performs the conversion.

impl From<(String, u16)> for Address
[src]

Performs the conversion.