Struct shadowsocks_rust::config::Config
source · pub struct Config {
pub log: LogConfig,
pub runtime: RuntimeConfig,
}
Expand description
Configuration Options for shadowsocks service runnables
Fields§
§log: LogConfig
Logger configuration
runtime: RuntimeConfig
Runtime configuration
Implementations§
source§impl Config
impl Config
sourcepub fn load_from_file<P: AsRef<Path>>(
filename: &P,
) -> Result<Config, ConfigError>
pub fn load_from_file<P: AsRef<Path>>( filename: &P, ) -> Result<Config, ConfigError>
Load Config
from file
sourcepub fn load_from_str(s: &str) -> Result<Config, ConfigError>
pub fn load_from_str(s: &str) -> Result<Config, ConfigError>
Load Config
from string
sourcepub fn set_options(&mut self, matches: &ArgMatches)
pub fn set_options(&mut self, matches: &ArgMatches)
Set by command line options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more