Enum shadowsocks::config::ServerAddr [] [src]

pub enum ServerAddr {
    SocketAddr(SocketAddr),
    DomainName(Stringu16),
}

Server address

Variants

IP Address

Domain name address, eg. example.com:8080

Methods

impl ServerAddr
[src]

Get address for server listener Panic if address is domain name

Trait Implementations

impl Clone for ServerAddr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ServerAddr
[src]

Formats the value using the given formatter.

impl FromStr for ServerAddr
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for ServerAddr
[src]

Formats the value using the given formatter.