Struct shadowsocks_rust::config::RuntimeConfig
source · [−]pub struct RuntimeConfig {
pub worker_count: Option<usize>,
pub mode: RuntimeMode,
}Expand description
Runtime configuration
Fields
worker_count: Option<usize>Multithread runtime worker count, CPU count if not configured
mode: RuntimeModeRuntime Mode, single-thread, multi-thread
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more