pub struct ManagerConfig {
pub addr: ManagerAddr,
pub method: Option<CipherKind>,
pub plugin: Option<PluginConfig>,
pub timeout: Option<Duration>,
pub server_host: ManagerServerHost,
pub mode: Mode,
pub server_mode: ManagerServerMode,
pub server_program: String,
pub server_working_directory: PathBuf,
}Expand description
Configuration for Manager
Fields§
§addr: ManagerAddrAddress of ss-manager. Send servers’ statistic data to the manager server
method: Option<CipherKind>Manager’s default method
plugin: Option<PluginConfig>Manager’s default plugin
timeout: Option<Duration>Timeout for TCP connections, setting to manager’s created servers
server_host: ManagerServerHostIP/Host for servers to bind (inbound)
Note: Outbound address is defined in Config.local_addr
mode: ModeServer’s mode
server_mode: ManagerServerModeServer’s running mode
server_program: StringServer’s command if running in Standalone mode
server_working_directory: PathBufServer’s working directory if running in Standalone mode
Implementations§
Source§impl ManagerConfig
impl ManagerConfig
Sourcepub fn new(addr: ManagerAddr) -> Self
pub fn new(addr: ManagerAddr) -> Self
Create a ManagerConfig with default options
Trait Implementations§
Source§impl Clone for ManagerConfig
impl Clone for ManagerConfig
Source§fn clone(&self) -> ManagerConfig
fn clone(&self) -> ManagerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ManagerConfig
impl RefUnwindSafe for ManagerConfig
impl Send for ManagerConfig
impl Sync for ManagerConfig
impl Unpin for ManagerConfig
impl UnwindSafe for ManagerConfig
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