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
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>
filename: &str,
config_type: ConfigType
) -> Result<Config, Error>
impl Config[src]
fn to_json(&self) -> Value
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