Struct shadowsocks::config::Config [] [src]

pub struct Config {
    pub server: Vec<ServerConfig>,
    pub local: Option<ClientConfig>,
    pub http_proxy: Option<ClientConfig>,
    pub enable_udp: bool,
    pub timeout: Option<Duration>,
    pub forbidden_ip: HashSet<IpAddr>,
    pub dns_cache_capacity: usize,
}

Configuration

Fields

Methods

impl Config
[src]

Creates an empty configuration

Trait Implementations

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Config
[src]

Formats the value using the given formatter.

impl Default for Config
[src]

Returns the "default value" for a type. Read more

impl ToJson for Config
[src]

Converts the value of self to an instance of JSON

impl Display for Config
[src]

Formats the value using the given formatter.