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>, }
Configuration
Fields
server: Vec<ServerConfig>
local: Option<ClientConfig>
http_proxy: Option<ClientConfig>
enable_udp: bool
timeout: Option<Duration>
forbidden_ip: HashSet<IpAddr>
Methods
impl Config
[src]
fn new() -> Config
Creates an empty configuration
fn load_from_str(s: &str, config_type: ConfigType) -> Result<Config, Error>
fn load_from_file(filename: &str,
config_type: ConfigType)
-> Result<Config, Error>
config_type: ConfigType)
-> Result<Config, Error>
Trait Implementations
impl Clone for Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more