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