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]

[src]

Get address for server listener Panic if address is domain name

[src]

Get string representation of domain

[src]

Get port

Trait Implementations

impl Clone for ServerAddr
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ServerAddr
[src]

[src]

Formats the value using the given formatter.

impl FromStr for ServerAddr
[src]

The associated error which can be returned from parsing.

[src]

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

impl Display for ServerAddr
[src]

[src]

Formats the value using the given formatter. Read more